Fix: problem if not defined
This commit is contained in:
parent
157b50b9db
commit
bc3312aa3d
@ -849,8 +849,8 @@ class Propal extends CommonObject
|
|||||||
if ($objsoc->fetch($socid)>0)
|
if ($objsoc->fetch($socid)>0)
|
||||||
{
|
{
|
||||||
$object->socid = $objsoc->id;
|
$object->socid = $objsoc->id;
|
||||||
$object->cond_reglement_id = $objsoc->cond_reglement_id;
|
$object->cond_reglement_id = (! empty($objsoc->cond_reglement_id) ? $objsoc->cond_reglement_id : 0);
|
||||||
$object->mode_reglement_id = $objsoc->mode_reglement_id;
|
$object->mode_reglement_id = (! empty($objsoc->mode_reglement_id) ? $objsoc->mode_reglement_id : 0);
|
||||||
$object->fk_project = '';
|
$object->fk_project = '';
|
||||||
$object->fk_delivery_address = '';
|
$object->fk_delivery_address = '';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -747,8 +747,8 @@ class Commande extends CommonObject
|
|||||||
if ($objsoc->fetch($socid)>0)
|
if ($objsoc->fetch($socid)>0)
|
||||||
{
|
{
|
||||||
$object->socid = $objsoc->id;
|
$object->socid = $objsoc->id;
|
||||||
$object->cond_reglement_id = $objsoc->cond_reglement_id;
|
$object->cond_reglement_id = (! empty($objsoc->cond_reglement_id) ? $objsoc->cond_reglement_id : 0);
|
||||||
$object->mode_reglement_id = $objsoc->mode_reglement_id;
|
$object->mode_reglement_id = (! empty($objsoc->mode_reglement_id) ? $objsoc->mode_reglement_id : 0);
|
||||||
$object->fk_project = '';
|
$object->fk_project = '';
|
||||||
$object->fk_delivery_address = '';
|
$object->fk_delivery_address = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user