Merge pull request #19857 from cfoellmann/PR/tasks-fetch_optionals
getTasksArray() fetch_optionals to populate ExtraFields
This commit is contained in:
commit
80e2c1c449
@ -800,9 +800,10 @@ class Task extends CommonObject
|
|||||||
* @param array $extrafields Show additional column from project or task
|
* @param array $extrafields Show additional column from project or task
|
||||||
* @param int $includebilltime Calculate also the time to bill and billed
|
* @param int $includebilltime Calculate also the time to bill and billed
|
||||||
* @param array $search_array_options Array of search
|
* @param array $search_array_options Array of search
|
||||||
|
* @param int $loadextras Fetch all Extrafields on each task
|
||||||
* @return array Array of tasks
|
* @return array Array of tasks
|
||||||
*/
|
*/
|
||||||
public function getTasksArray($usert = null, $userp = null, $projectid = 0, $socid = 0, $mode = 0, $filteronproj = '', $filteronprojstatus = '-1', $morewherefilter = '', $filteronprojuser = 0, $filterontaskuser = 0, $extrafields = array(), $includebilltime = 0, $search_array_options = array())
|
public function getTasksArray($usert = null, $userp = null, $projectid = 0, $socid = 0, $mode = 0, $filteronproj = '', $filteronprojstatus = '-1', $morewherefilter = '', $filteronprojuser = 0, $filterontaskuser = 0, $extrafields = array(), $includebilltime = 0, $search_array_options = array(), $loadextras = 0)
|
||||||
{
|
{
|
||||||
global $conf, $hookmanager;
|
global $conf, $hookmanager;
|
||||||
|
|
||||||
@ -1022,6 +1023,10 @@ class Task extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($loadextras) {
|
||||||
|
$tasks[$i]->fetch_optionals();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user