Merge pull request #5046 from bafbes/abb-17
fix:use of function updateExtrafield instead of insertExtrafields in interventions
This commit is contained in:
commit
467662143f
@ -882,8 +882,7 @@ if (empty($reshook))
|
|||||||
$parameters=array('id'=>$object->id);
|
$parameters=array('id'=>$object->id);
|
||||||
$reshook=$hookmanager->executeHooks('insertExtraFields',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('insertExtraFields',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
if (empty($reshook))
|
if (empty($reshook))
|
||||||
{
|
{ $result=$object->updateExtraField($_POST["attribute"]);
|
||||||
$result=$object->insertExtraFields();
|
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user