Update propal.class.php

This commit is contained in:
Laurent Destailleur 2019-08-15 19:48:29 +02:00 committed by GitHub
parent 7dab396d08
commit ac8bf7b066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1056,6 +1056,14 @@ class Propal extends CommonObject
}
}
// Add linked object (deprecated, use ->linkedObjectsIds instead)
if (! $error && $this->origin && $this->origin_id)
{
dol_syslog('Deprecated use of linked object, use ->linkedObjectsIds instead', LOG_WARNING);
$ret = $this->add_object_linked();
if (! $ret) dol_print_error($this->db);
}
/*
* Insertion du detail des produits dans la base
* Insert products detail in database