forked from Wavyzz/dolibarr
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
This commit is contained in:
@@ -619,6 +619,19 @@ abstract class CommonObject
|
||||
public $user_modification_id;
|
||||
|
||||
|
||||
/**
|
||||
* @var int ID
|
||||
* @deprecated Use $user_creation_id
|
||||
*/
|
||||
public $fk_user_creat;
|
||||
|
||||
/**
|
||||
* @var int ID
|
||||
* @deprecated Use $user_modification_id
|
||||
*/
|
||||
public $fk_user_modif;
|
||||
|
||||
|
||||
public $next_prev_filter;
|
||||
|
||||
/**
|
||||
@@ -9058,9 +9071,9 @@ abstract class CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Function to prepare a part of the query for insert by returning an array with all properties of object.
|
||||
* Function to return the array of data key-value from the ->fields and all the ->properties of an object.
|
||||
*
|
||||
* Note $this->${field} are set by the page that make the createCommon() or the updateCommon().
|
||||
* Note: $this->${field} are set by the page that make the createCommon() or the updateCommon().
|
||||
* $this->${field} should be a clean and string value (so date are formated for SQL insert).
|
||||
*
|
||||
* @return array Array with all values of each properties to update
|
||||
@@ -9263,6 +9276,11 @@ abstract class CommonObject
|
||||
}
|
||||
if (array_key_exists('fk_user_creat', $fieldvalues) && !($fieldvalues['fk_user_creat'] > 0)) {
|
||||
$fieldvalues['fk_user_creat'] = $user->id;
|
||||
$this->fk_user_creat = $user->id;
|
||||
}
|
||||
if (array_key_exists('user_modification_id', $fieldvalues) && !($fieldvalues['user_modification_id'] > 0)) {
|
||||
$fieldvalues['user_modification_id'] = $user->id;
|
||||
$this->user_modification_id = $user->id;
|
||||
}
|
||||
unset($fieldvalues['rowid']); // The field 'rowid' is reserved field name for autoincrement field so we don't need it into insert.
|
||||
if (array_key_exists('ref', $fieldvalues)) {
|
||||
|
||||
Reference in New Issue
Block a user