HOR-4547: Classic / Task / Steps / Triggers / Before Assignment / Add
PHP Warning: A non-numeric value encountered in /srv/http/processmaker/workflow/engine/classes/PropelTable.php on line 264 PHP Warning: A non-numeric value encountered in /srv/http/processmaker/workflow/engine/classes/PropelTable.php on line 330
This commit is contained in:
@@ -261,7 +261,8 @@ class PropelTable
|
|||||||
$totalWidth = 0;
|
$totalWidth = 0;
|
||||||
foreach ($this->fields as $r => $rval) {
|
foreach ($this->fields as $r => $rval) {
|
||||||
if ($this->style[$r]['showInTable'] != '0') {
|
if ($this->style[$r]['showInTable'] != '0') {
|
||||||
$totalWidth += $this->style[$r]['colWidth'];
|
$colWidth = empty($this->style[$r]['colWidth']) ? 0 : $this->style[$r]['colWidth'];
|
||||||
|
$totalWidth += $colWidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->totalWidth = $totalWidth;
|
$this->totalWidth = $totalWidth;
|
||||||
@@ -327,7 +328,8 @@ class PropelTable
|
|||||||
$this->tpl->assign("width", $this->style[$r]['colWidth']);
|
$this->tpl->assign("width", $this->style[$r]['colWidth']);
|
||||||
}
|
}
|
||||||
if (isset($this->style[$r]['colWidth'])) {
|
if (isset($this->style[$r]['colWidth'])) {
|
||||||
$this->tpl->assign("widthPercent", ($this->style[$r]['colWidth'] * 100 / $this->totalWidth) . "%");
|
$colWidth = empty($this->style[$r]['colWidth']) ? 1 : $this->style[$r]['colWidth'];
|
||||||
|
$this->tpl->assign("widthPercent", ($colWidth * 100 / $this->totalWidth) . "%");
|
||||||
//Hook for special skin with RTL languajes
|
//Hook for special skin with RTL languajes
|
||||||
}
|
}
|
||||||
if (defined('SYS_LANG_DIRECTION') && SYS_LANG_DIRECTION == 'R') {
|
if (defined('SYS_LANG_DIRECTION') && SYS_LANG_DIRECTION == 'R') {
|
||||||
|
|||||||
Reference in New Issue
Block a user