From 706914c4e9412bb798bbcafbb4b343857b33af8c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Dec 2006 20:33:32 +0000 Subject: [PATCH] =?UTF-8?q?bugfix:=20la=20cat=E9gorie=20m=E8re=20n'=E9tait?= =?UTF-8?q?=20pas=20r=E9cup=E9r=E9e=20lors=20de=20l'=E9dition=20d'une=20ca?= =?UTF-8?q?t=E9gorie=20fille?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/categories/categorie.class.php | 1 - htdocs/categories/edit.php | 81 ++++++++++++--------------- htdocs/html.form.class.php | 4 +- 3 files changed, 37 insertions(+), 49 deletions(-) diff --git a/htdocs/categories/categorie.class.php b/htdocs/categories/categorie.class.php index 0b188b3a841..95d813cae61 100644 --- a/htdocs/categories/categorie.class.php +++ b/htdocs/categories/categorie.class.php @@ -90,7 +90,6 @@ class Categorie { $res = $this->db->fetch_array($resql); $this->id_mere = $res['fk_categorie_mere']; - } else { diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index 34d15923011..c5fdcbaa383 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -1,6 +1,7 @@ - * Copyright (C) 2006 Laurent Destailleur +/* Copyright (C) 2005 Matthieu Valleton + * Copyright (C) 2006 Laurent Destailleur + * Copyright (C) 2005-2006 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -90,54 +91,42 @@ print '
'; print ''; print ''; -?> - - - +print '
trans("Label"); ?> :
'; +print ''; +print ''; - -'; - print ''; - print ''; +print ''; +print ''; - print ''; -?> - - - - +print ''; + +print ''; + +print ''; - - - - -
'; +print $langs->trans("Label").' :'; +print '
-
'.$langs->trans("Description").':'; +print '
'.$langs->trans("Description").':'; - if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC) - { - require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); - $doleditor=new DolEditor('description',$categorie->description,200,'dolibarr_notes'); - $doleditor->Create(); - } - else - { - print ''; - } +if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC) +{ + require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); + $doleditor=new DolEditor('description',$categorie->description,200,'dolibarr_notes'); + $doleditor->Create(); +} +else +{ + print ''; +} - print '
trans ("AddIn"); ?> - select_all_categories($categorie->id_mere);?> -
trans ("ContentsVisibleByAll"); ?> - selectyesnonum("visible",$categorie->visible);?> -
'.$langs->trans("AddIn").''; +print $html->select_all_categories($categorie->id_mere); +print '
'.$langs->trans("ContentsVisibleByAll").''; +print $html->selectyesnonum("visible",$categorie->visible); +print '
-
- - '; +print ''; +print ''; print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 6b66d49ea01..27e566897ca 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1243,7 +1243,7 @@ class Form if ($select_name=="") $select_name="catMere"; - $cat = new Categorie ($this -> db); + $cat = new Categorie ($this -> db); $cate_arbo = $cat->get_full_arbo(); $output = '