From dfd0ee4cb98437400312abf3d23ab7f1828de260 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 18 May 2007 07:47:46 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20passe=20le=20champ=20ref=20=E0=2032=20ca?= =?UTF-8?q?ract=E8res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php | 4 ++-- mysql/migration/2.1.0-2.2.0.sql | 4 +++- mysql/tables/llx_product.sql | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 5a92116d44e..dd0d00c433c 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -444,7 +444,7 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) print ''; print ''; - print '
'.$langs->trans("Ref").''; + print ''.$langs->trans("Ref").''; if ($_error == 1) { print $langs->trans("RefAlreadyExists"); @@ -833,7 +833,7 @@ if ($_GET["id"] || $_GET["ref"]) print ''; print ''; print ''; - print ''; + print ''; print ''; print '
'.$langs->trans("Ref").'
'.$langs->trans("Ref").'
'.$langs->trans("Label").'
'.$langs->trans("VATRate").''; diff --git a/mysql/migration/2.1.0-2.2.0.sql b/mysql/migration/2.1.0-2.2.0.sql index ef500ae0fee..a890f73564e 100644 --- a/mysql/migration/2.1.0-2.2.0.sql +++ b/mysql/migration/2.1.0-2.2.0.sql @@ -518,4 +518,6 @@ insert into `llx_menu_const` (`rowid`, `fk_menu`, `fk_constraint`, `user`) value insert into `llx_menu_const` (`rowid`, `fk_menu`, `fk_constraint`, `user`) values (109, 5001, 6, 2); ALTER TABLE llx_product ADD COLUMN volume float DEFAULT NULL after weight_units; -ALTER TABLE llx_product ADD COLUMN volume_units tinyint DEFAULT NULL after volume; \ No newline at end of file +ALTER TABLE llx_product ADD COLUMN volume_units tinyint DEFAULT NULL after volume; + +ALTER TABLE llx_product modify ref varchar(32) NOT NULL; \ No newline at end of file diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index 7a0c1b49811..870345fce14 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -25,7 +25,7 @@ create table llx_product rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, tms timestamp, - ref varchar(16) NOT NULL, + ref varchar(32) NOT NULL, label varchar(255) NOT NULL, description text, note text,