Fix: more complete
This commit is contained in:
parent
156d26ddb9
commit
5914bfdf18
@ -1366,7 +1366,9 @@ abstract class CommonObject
|
|||||||
|
|
||||||
// Special case
|
// Special case
|
||||||
if ($table == 'product' && $field == 'note_private') $field='note';
|
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 ";
|
$sql = "UPDATE ".MAIN_DB_PREFIX.$table." SET ";
|
||||||
if ($format == 'text') $sql.= $field." = '".$this->db->escape($value)."'";
|
if ($format == 'text') $sql.= $field." = '".$this->db->escape($value)."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user