diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index ddab9fb1e21..0a7b7211655 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1330,7 +1330,7 @@ abstract class CommonObject } /** - * Update private note of element + * Update external ref of element * * @param string $ref_ext Update field ref_ext * @return int <0 if KO, >0 if OK @@ -1376,7 +1376,7 @@ abstract class CommonObject } $sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element; - // TODO uniformize fields note_private + // TODO uniformize fields to note_private if ($this->table_element == 'fichinter' || $this->table_element == 'projet' || $this->table_element == 'projet_task') { $sql.= " SET note_private = '".$this->db->escape($note)."'"; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index b3c1b3d4970..5f042f714e7 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -75,9 +75,10 @@ class Form * @param object $object Object * @param boolean $perm Permission to allow button to edit parameter * @param string $typeofdata Type of data ('string' by default, 'email', 'numeric:99', 'text' or 'textarea', 'day' or 'datepicker', 'ckeditor:dolibarr_zzz:width:height', 'select:xxx'...) + * @param string $moreparam More param to add on a href URL * @return string HTML edit field */ - function editfieldkey($text,$htmlname,$preselected,$object,$perm,$typeofdata='string') + function editfieldkey($text, $htmlname, $preselected, $object, $perm, $typeofdata='string', $moreparam='') { global $conf,$langs; @@ -103,7 +104,7 @@ class Form $ret.='
| '; $ret.=$langs->trans($text); $ret.=' | '; - if (GETPOST('action') != 'edit'.$htmlname && $perm) $ret.='id.'">'.img_edit($langs->trans('Edit'),1).' | '; + if (GETPOST('action') != 'edit'.$htmlname && $perm) $ret.='id.$moreparam.'">'.img_edit($langs->trans('Edit'),1).' | '; $ret.='