Fixing style errors.

This commit is contained in:
stickler-ci 2020-04-23 17:29:52 +00:00
parent b4fbb86548
commit ababad540a
2 changed files with 12 additions and 12 deletions

View File

@ -441,14 +441,14 @@ class CommandeFournisseurDispatch extends CommonObject
}
// Remove extrafields
if (!$error) {
$result = $this->deleteExtraFields();
if ($result < 0)
{
$error++;
dol_syslog(get_class($this)."::delete error deleteExtraFields ".$this->error, LOG_ERR);
}
}
if (!$error) {
$result = $this->deleteExtraFields();
if ($result < 0)
{
$error++;
dol_syslog(get_class($this)."::delete error deleteExtraFields ".$this->error, LOG_ERR);
}
}
if (! $error)
{

View File

@ -766,10 +766,10 @@ class Reception extends CommonObject
$line->array_options = $supplierorderline->array_options;
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && is_array($array_options) && count($array_options) > 0) // For avoid conflicts if trigger used
{
foreach ($array_options as $key => $value) {
$line->array_options[$key] = $value;
}
}
foreach ($array_options as $key => $value) {
$line->array_options[$key] = $value;
}
}
$line->fk_product = $fk_product;
$line->fk_commande = $supplierorderline->fk_commande;