Skip to content
Snippets Groups Projects
Commit f3bbf544 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: [ bug #1307 ] Quotes get removed from several inputs

parent 46e46507
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment