mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
Fix: more complete
This commit is contained in:
committed by
Laurent Destailleur
parent
156d26ddb9
commit
5914bfdf18
@@ -1366,7 +1366,9 @@ abstract class CommonObject
|
||||
|
||||
// Special case
|
||||
if ($table == 'product' && $field == 'note_private') $field='note';
|
||||
if ($table == 'adherent') $fk_user_field = 'fk_user_mod';
|
||||
if (in_array($table, array('actioncomm', 'adherent', 'advtargetemailing', 'cronjob', 'establishment'))) {
|
||||
$fk_user_field = 'fk_user_mod';
|
||||
}
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX.$table." SET ";
|
||||
if ($format == 'text') $sql.= $field." = '".$this->db->escape($value)."'";
|
||||
|
||||
Reference in New Issue
Block a user