diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index e5fa13c6521..a85f2485179 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -692,6 +692,18 @@ abstract class CommonObject */ public $user_modification_id; + /** + * @var int ID + * @deprecated Use $user_creation_id + */ + public $fk_user_creat; + + /** + * @var int ID + * @deprecated Use $user_modification_id + */ + public $fk_user_modif; + public $next_prev_filter; @@ -9721,9 +9733,11 @@ abstract class CommonObject } if (array_key_exists('fk_user_creat', $fieldvalues) && !($fieldvalues['fk_user_creat'] > 0)) { $fieldvalues['fk_user_creat'] = $user->id; + $this->fk_user_creat = $user->id; } if (array_key_exists('user_creation_id', $fieldvalues) && !($fieldvalues['user_creation_id'] > 0)) { $fieldvalues['user_creation_id'] = $user->id; + $this->user_modification_id = $user->id; } if (array_key_exists('pass_crypted', $fieldvalues) && property_exists($this, 'pass')) { $fieldvalues['pass_crypted'] = dol_hash($this->pass); diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index b41024bbc26..58bd75669d7 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1448,8 +1448,8 @@ if (empty($reshook)) { ); // Is sync supplier web services module activated? and everything filled? - if (isModEnabled('syncsupplierwebservices')) { - setEventMessages($langs->trans("WarningModuleNotActive", $langs->transnoentities("Module2650Name")), null, 'mesgs'); + if (isModEnabled('webservicesclient')) { + setEventMessages($langs->trans("WarningModuleNotActive", $langs->transnoentities("Module2660Name")), null, 'mesgs'); } elseif (empty($ws_url) || empty($ws_key)) { setEventMessages($langs->trans("ErrorWebServicesFieldsRequired"), null, 'errors'); } elseif (empty($ws_user) || empty($ws_password) || empty($ws_thirdparty)) {