diff --git a/htdocs/exports/export.class.php b/htdocs/exports/export.class.php index ebb484b4f05..f3c692c314f 100644 --- a/htdocs/exports/export.class.php +++ b/htdocs/exports/export.class.php @@ -224,7 +224,7 @@ class Export $this->db->begin(); $sql = 'INSERT INTO '.MAIN_DB_PREFIX.'export_model ('; - $sql.= 'nom, type, field)'; + $sql.= 'label, type, field)'; $sql.= " VALUES ('".$this->model_name."', '".$this->datatoexport."', '".$this->hexa."')"; dolibarr_syslog("Export.class.php::create sql=".$sql); @@ -249,7 +249,7 @@ class Export */ function fetch($id) { - $sql = 'SELECT em.rowid, em.field, em.nom, em.type'; + $sql = 'SELECT em.rowid, em.field, em.label, em.type'; $sql.= ' FROM '.MAIN_DB_PREFIX.'export_model as em'; $sql.= ' WHERE em.rowid = '.$id; @@ -263,7 +263,7 @@ class Export { $this->id = $obj->rowid; $this->hexa = $obj->field; - $this->model_name = $obj->nom; + $this->model_name = $obj->label; $this->datatoexport = $obj->type; return 1; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index f18bc224e18..d7e9f03e446 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2933,7 +2933,7 @@ class Form function select_export_model($selected='',$htmlname='exportmodelid',$type='',$useempty=0) { - $sql = "SELECT rowid, nom"; + $sql = "SELECT rowid, label"; $sql.= " FROM ".MAIN_DB_PREFIX."export_model"; $sql.= " WHERE type = '".$type."'"; $sql.= " ORDER BY rowid"; @@ -2959,7 +2959,7 @@ class Form { print ''; $i++; }