Fix sql error

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

View File

@ -1226,6 +1226,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

@ -2010,6 +2010,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) {