Fix sql error

This commit is contained in:
Laurent Destailleur 2021-09-08 19:45:55 +02:00
parent 0b68da4e9e
commit 57a2ea3a53
2 changed files with 7 additions and 0 deletions

View File

@ -1228,6 +1228,8 @@ if ($action == 'create') {
}
$morehtmlref .= '</div>';
$morehtmlright = '';
dol_banner_tab($object, 'ref', $linkback, 1, 'title', 'none', $morehtmlref, '', 0, '', $morehtmlright);
print '<div class="fichecenter">';

View File

@ -2001,6 +2001,11 @@ abstract class CommonObject
return 1;
}
// For backward compatibility
if ($this->table_element == 'facture_rec' && $fieldid == 'title') {
$fieldid = 'titre';
}
// Security on socid
$socid = 0;
if ($user->socid > 0) {