* Fix syntax error in tmp log file.
This commit is contained in:
@@ -87,7 +87,7 @@ class Condition extends Component
|
||||
*/
|
||||
public function __construct($expr = null)
|
||||
{
|
||||
$this->expr = trim($expr);
|
||||
$this->expr = !empty($expr) ? trim($expr) : $expr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$this->app->loadLang('account');
|
||||
$this->app->loadLang('user');
|
||||
|
||||
$schema = new stdclass();
|
||||
|
||||
@@ -9,6 +9,6 @@ $schema->tables = array();
|
||||
$schema->tables['effort'] = 'zt_effort';
|
||||
|
||||
$schema->fields = array();
|
||||
$schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->account->id);
|
||||
$schema->fields['account'] = array('type' => 'user', 'name' => $this->lang->account->name);
|
||||
$schema->fields['id'] = array('type' => 'number', 'name' => $this->lang->user->id);
|
||||
$schema->fields['account'] = array('type' => 'user', 'name' => $this->lang->user->account);
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<div class="modal-dialog" style="width: 1200px;">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"><?php echo $lang->common->close;?></span></button>
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only"><?php echo $lang->close;?></span></button>
|
||||
<h4 class="modal-title"><?php echo $lang->dataview->fieldSettings;?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
@@ -2033,8 +2033,9 @@ class pivotModel extends model
|
||||
{
|
||||
foreach($record as $field => $value)
|
||||
{
|
||||
$optionList = isset($fieldOptions[$field]) ? $fieldOptions[$field] : array();
|
||||
$record[$field] = isset($optionList[$value]) ? $optionList[$value] : $value;
|
||||
$optionList = isset($fieldOptions[$field]) ? $fieldOptions[$field] : array();
|
||||
$valueKey = "$value";
|
||||
$record[$field] = isset($optionList[$valueKey]) ? $optionList[$valueKey] : $value;
|
||||
}
|
||||
|
||||
$records[$index] = (object)$record;
|
||||
@@ -2565,7 +2566,7 @@ class pivotModel extends model
|
||||
$options = array();
|
||||
if(is_array($source))
|
||||
{
|
||||
foreach($source as $row) $options[$row->$field] = $row->$field;
|
||||
foreach($source as $row) $options["{$row->$field}"] = $row->$field;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -2775,9 +2776,10 @@ class pivotModel extends model
|
||||
foreach($data->cols[0] as $col)
|
||||
{
|
||||
$colspan = zget($col, 'colspan', 1);
|
||||
$colShowOrigin = array_fill(0, $colspan, $col->showOrigin);
|
||||
$showOrigin = isset($col->showOrigin) ? $col->showOrigin : false;
|
||||
$colShowOrigin = array_fill(0, $colspan, $showOrigin);
|
||||
$showOrigins = array_merge($showOrigins, $colShowOrigin);
|
||||
if($col->showOrigin) $hasShowOrigin = true;
|
||||
if($showOrigin) $hasShowOrigin = true;
|
||||
}
|
||||
|
||||
/* Init table thead. */
|
||||
|
||||
Reference in New Issue
Block a user