* Code for fix bug in tao func doUpdate .
This commit is contained in:
@@ -1394,7 +1394,7 @@ class projectModel extends model
|
||||
$this->lang->error->unique = $this->lang->error->repeat;
|
||||
|
||||
if(!empty($executionsCount) and $oldProject->multiple) $this->checkDatesValidByProject($projectID ,$project);
|
||||
$this->projectTao->doUpdate($projectID, $project);
|
||||
$this->projectTao->doUpdate($projectID, $project, $oldProject);
|
||||
if(dao::isError()) return false;
|
||||
|
||||
if(!$oldProject->hasProduct and ($oldProject->name != $project->name or $oldProject->parent != $project->parent or $oldProject->acl != $project->acl)) $this->updateShadowProduct($project);
|
||||
|
||||
@@ -101,10 +101,11 @@ class projectTao extends projectModel
|
||||
*
|
||||
* @param int $projectID
|
||||
* @param object $project
|
||||
* @param object $oldProject
|
||||
* @access protected
|
||||
* @return bool
|
||||
*/
|
||||
protected function doUpdate(int $projectID ,object $project): bool
|
||||
protected function doUpdate(int $projectID ,object $project, object $oldProject): bool
|
||||
{
|
||||
$this->dao->update(TABLE_PROJECT)->data($project)
|
||||
->autoCheck($skipFields = 'begin,end')
|
||||
|
||||
Reference in New Issue
Block a user