Fix name of method to avoid ci errors
This commit is contained in:
parent
299c32d262
commit
125085acee
@ -5804,7 +5804,7 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
$labeltoshow = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$labeltoshow.'</span>';
|
$labeltoshow = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$labeltoshow.'</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($onetrtd)) $out .= '<td>';
|
if (empty($onetrtd)) $out .= '<td>';
|
||||||
else $out .= '<td'.($colspan?' colspan="'.($colspan+1).'"':'').'>';
|
else $out .= '<td'.($colspan?' colspan="'.($colspan+1).'"':'').'>';
|
||||||
|
|
||||||
@ -6111,7 +6111,7 @@ abstract class CommonObject
|
|||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function set_save_query()
|
protected function setSaveQuery()
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -6210,7 +6210,7 @@ abstract class CommonObject
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function get_field_list()
|
protected function getFieldList()
|
||||||
{
|
{
|
||||||
$keys = array_keys($this->fields);
|
$keys = array_keys($this->fields);
|
||||||
return implode(',', $keys);
|
return implode(',', $keys);
|
||||||
@ -6245,7 +6245,7 @@ abstract class CommonObject
|
|||||||
|
|
||||||
$now=dol_now();
|
$now=dol_now();
|
||||||
|
|
||||||
$fieldvalues = $this->set_save_query();
|
$fieldvalues = $this->setSaveQuery();
|
||||||
if (array_key_exists('date_creation', $fieldvalues) && empty($fieldvalues['date_creation'])) $fieldvalues['date_creation']=$this->db->idate($now);
|
if (array_key_exists('date_creation', $fieldvalues) && empty($fieldvalues['date_creation'])) $fieldvalues['date_creation']=$this->db->idate($now);
|
||||||
if (array_key_exists('fk_user_creat', $fieldvalues) && ! ($fieldvalues['fk_user_creat'] > 0)) $fieldvalues['fk_user_creat']=$user->id;
|
if (array_key_exists('fk_user_creat', $fieldvalues) && ! ($fieldvalues['fk_user_creat'] > 0)) $fieldvalues['fk_user_creat']=$user->id;
|
||||||
unset($fieldvalues['rowid']); // The field 'rowid' is reserved field name for autoincrement field so we don't need it into insert.
|
unset($fieldvalues['rowid']); // The field 'rowid' is reserved field name for autoincrement field so we don't need it into insert.
|
||||||
@ -6337,7 +6337,7 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
if (empty($id) && empty($ref)) return false;
|
if (empty($id) && empty($ref)) return false;
|
||||||
|
|
||||||
$sql = 'SELECT '.$this->get_field_list();
|
$sql = 'SELECT '.$this->getFieldList();
|
||||||
$sql.= ' FROM '.MAIN_DB_PREFIX.$this->table_element;
|
$sql.= ' FROM '.MAIN_DB_PREFIX.$this->table_element;
|
||||||
|
|
||||||
if(!empty($id)) $sql.= ' WHERE rowid = '.$id;
|
if(!empty($id)) $sql.= ' WHERE rowid = '.$id;
|
||||||
@ -6380,7 +6380,7 @@ abstract class CommonObject
|
|||||||
|
|
||||||
$now=dol_now();
|
$now=dol_now();
|
||||||
|
|
||||||
$fieldvalues = $this->set_save_query();
|
$fieldvalues = $this->setSaveQuery();
|
||||||
if (array_key_exists('date_modification', $fieldvalues) && empty($fieldvalues['date_modification'])) $fieldvalues['date_modification']=$this->db->idate($now);
|
if (array_key_exists('date_modification', $fieldvalues) && empty($fieldvalues['date_modification'])) $fieldvalues['date_modification']=$this->db->idate($now);
|
||||||
if (array_key_exists('fk_user_modif', $fieldvalues) && ! ($fieldvalues['fk_user_modif'] > 0)) $fieldvalues['fk_user_modif']=$user->id;
|
if (array_key_exists('fk_user_modif', $fieldvalues) && ! ($fieldvalues['fk_user_modif'] > 0)) $fieldvalues['fk_user_modif']=$user->id;
|
||||||
unset($fieldvalues['rowid']); // The field 'rowid' is reserved field name for autoincrement field so we don't need it into update.
|
unset($fieldvalues['rowid']); // The field 'rowid' is reserved field name for autoincrement field so we don't need it into update.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user