* Replace array_column to helper::arrayColumn, compatibility with low version object arrays.

This commit is contained in:
caoyanyi
2023-09-04 14:48:59 +08:00
parent d15df882ed
commit 96b899b527
21 changed files with 41 additions and 41 deletions
+2 -2
View File
@@ -1224,7 +1224,7 @@ class task extends control
if($task->assignedTo == $currentAccount) $taskEffortFold = 1;
if(!empty($task->team))
{
$teamMember = array_column($task->team, 'account');
$teamMember = helper::arrayColumn($task->team, 'account');
if(in_array($currentAccount, $teamMember)) $taskEffortFold = 1;
}
}
@@ -1873,7 +1873,7 @@ class task extends control
if(!empty($this->view->task->team))
{
$teamAccounts = array_column($this->view->task->team, 'account');
$teamAccounts = helper::arrayColumn($this->view->task->team, 'account');
$teamMembers = array();
foreach($this->view->members as $account => $name)
{