Uniformize code, order of fiels in card and language files.

This commit is contained in:
Laurent Destailleur
2013-04-28 01:12:40 +02:00
parent 757473cf86
commit 2e81fa342e
20 changed files with 84 additions and 77 deletions

View File

@@ -27,6 +27,7 @@
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$langs->load("categories");
$id=GETPOST('id','int');
$ref=GETPOST('ref');
@@ -62,7 +63,7 @@ if ($action == 'update' && $user->rights->categorie->creer)
$result=$categorie->fetch($id);
$categorie->label = $nom;
$categorie->description = $description;
$categorie->description = dol_htmlcleanlastbr($description);
$categorie->socid = ($socid ? $socid : 'null');
$categorie->visible = $visible;