From bf22746ebecb786465c69faaf212527256623907 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 23 Mar 2007 18:14:08 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20possibilit=E9=20d'enregistrer=20des=20m?= =?UTF-8?q?od=E8les=20d'exports=20afin=20de=20ne=20pas=20les=20selectionne?= =?UTF-8?q?r=20=E0=20chaque=20fois,=20fonctionnalit=E9=20op=E9rationnel=20?= =?UTF-8?q?mais=20reste=20=E0=20la=20fignoler=20!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/exports/export.class.php | 6 +++--- htdocs/html.form.class.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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++; }