From f3bbf5444774c139bb01f9f443e64d8856914f54 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Apr 2014 11:52:09 +0200 Subject: [PATCH] Fix: [ bug #1307 ] Quotes get removed from several inputs --- htdocs/projet/fiche.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index 5b81bccd6ad..cefa422c4ad 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -129,9 +129,9 @@ if ($action == 'add' && $user->rights->projet->creer) $db->begin(); $object->ref = GETPOST('ref','alpha'); - $object->title = GETPOST('title','alpha'); + $object->title = GETPOST('title'); // Do not use 'alpha' here, we want field as it is $object->socid = GETPOST('socid','int'); - $object->description = GETPOST('description','alpha'); + $object->description = GETPOST('description'); // Do not use 'alpha' here, we want field as it is $object->public = GETPOST('public','alpha'); $object->datec=dol_now(); $object->date_start=$date_start; @@ -205,9 +205,9 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->projet->creer) $old_start_date = $object->date_start; $object->ref = GETPOST('ref','alpha'); - $object->title = GETPOST('title','alpha'); + $object->title = GETPOST('title'); // Do not use 'alpha' here, we want field as it is $object->socid = GETPOST('socid','int'); - $object->description = GETPOST('description','alpha'); + $object->description = GETPOST('description'); // Do not use 'alpha' here, we want field as it is $object->public = GETPOST('public','alpha'); $object->date_start = empty($_POST["project"])?'':$date_start; $object->date_end = empty($_POST["projectend"])?'':$date_end;