Fixing issues found by Roly and me

This commit is contained in:
Mauricio Veliz
2022-06-22 16:01:24 -04:00
parent 46988216f7
commit f6bed53cfb
8 changed files with 11 additions and 11 deletions

View File

@@ -6804,7 +6804,7 @@ class ProcessMap
return $aIDocs;
}
public function getMaximunTaskX($processUid)
public static function getMaximunTaskX($processUid)
{
$criteria = new Criteria('workflow');
$criteria->addSelectColumn('MAX(TAS_POSX) AS MAX_X');

View File

@@ -775,7 +775,7 @@ class ReportTables
* @access public
* @return boolean
*/
public function tableExist()
public static function tableExist()
{
$bExists = true;

View File

@@ -352,7 +352,7 @@ trait PluginStructure
$valueField = [];
if ((array_key_exists($name, $fieldsInTable) && $fieldsInTable[$name])) {
foreach ($fieldsInTable[$name] as $index => $item) {
if (method_exists($item, 'getAttributes')) {
if (is_object($item) && method_exists($item, 'getAttributes')) {
$valueField[$index] = $item->getAttributes();
} else {
$valueField[$index] = $item;