Fix sql error
This commit is contained in:
parent
6089de568e
commit
405beb77f5
@ -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">';
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user