PMC-138 Assigned user lost in case of Custom Import (Promotion Manager)

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-11-01 12:28:55 -04:00
parent 4806c865f3
commit 3e3ef93816
21 changed files with 11650 additions and 47 deletions

View File

@@ -277,7 +277,8 @@ class Project extends Api
public function doSaveAs($prj_uid, $prj_name, $prj_description = null, $prj_category = null)
{
$importer = new \ProcessMaker\Importer\XmlImporter();
return $importer->saveAs($prj_uid, $prj_name, $prj_description, $prj_category, $this->getUserId());
$importer->setData("usr_uid", $this->getUserId());
return $importer->saveAs($prj_uid, $prj_name, $prj_description, $prj_category);
}
/**