-Renamed POST "project" to "projectstart" to avoid strange behavior at project start date selector, probably the generic name "project" was interfering with something
This commit is contained in:
parent
cb2b6e6e40
commit
8a3bc25029
@ -63,7 +63,7 @@ $result = restrictedArea($user, 'projet', $object->id);
|
||||
// fetch optionals attributes and labels
|
||||
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
|
||||
|
||||
$date_start=dol_mktime(0,0,0,GETPOST('projectmonth','int'),GETPOST('projectday','int'),GETPOST('projectyear','int'));
|
||||
$date_start=dol_mktime(0,0,0,GETPOST('projectstartmonth','int'),GETPOST('projectstartday','int'),GETPOST('projectstartyear','int'));
|
||||
$date_end=dol_mktime(0,0,0,GETPOST('projectendmonth','int'),GETPOST('projectendday','int'),GETPOST('projectendyear','int'));
|
||||
|
||||
|
||||
@ -216,7 +216,7 @@ if (empty($reshook))
|
||||
$object->socid = GETPOST('socid','int');
|
||||
$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_start = empty($_POST["projectstart"])?'':$date_start;
|
||||
$object->date_end = empty($_POST["projectend"])?'':$date_end;
|
||||
|
||||
// Fill array 'array_options' with data from add form
|
||||
@ -447,7 +447,7 @@ if ($action == 'create' && $user->rights->projet->creer)
|
||||
|
||||
// Date start
|
||||
print '<tr><td>'.$langs->trans("DateStart").'</td><td>';
|
||||
print $form->select_date(($date_start?$date_start:''),'project');
|
||||
print $form->select_date(($date_start?$date_start:''),'projectstart');
|
||||
print '</td></tr>';
|
||||
|
||||
// Date end
|
||||
@ -581,7 +581,7 @@ else
|
||||
|
||||
// Date start
|
||||
print '<tr><td>'.$langs->trans("DateStart").'</td><td>';
|
||||
print $form->select_date($object->date_start?$object->date_start:-1,'project');
|
||||
print $form->select_date($object->date_start?$object->date_start:-1,'projectstart');
|
||||
print ' <input type="checkbox" name="reportdate" value="yes" ';
|
||||
if ($comefromclone){print ' checked="checked" ';}
|
||||
print '/> '. $langs->trans("ProjectReportDate");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user