Skip to content
Snippets Groups Projects
Commit 572269be authored by tysauron's avatar tysauron
Browse files

For backward compatibility ON update actioncomm

For backward compatibility when val=id   ON update actioncomm object
parent 0ef5fe24
No related branches found
No related tags found
No related merge requests found
......@@ -685,6 +685,10 @@ class ActionComm extends CommonObject
foreach($this->userassigned as $key => $val)
{
if (! is_array($val)) // For backward compatibility when val=id
{
$val=array('id'=>$val);
}
$sql ="INSERT INTO ".MAIN_DB_PREFIX."actioncomm_resources(fk_actioncomm, element_type, fk_element, mandatory, transparency, answer_status)";
$sql.=" VALUES(".$this->id.", 'user', ".$val['id'].", ".(empty($val['manadatory'])?'0':$val['manadatory']).", ".(empty($val['transparency'])?'0':$val['transparency']).", ".(empty($val['answer_status'])?'0':$val['answer_status']).")";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment