Ryan Shugart a écrit :
OK, it seems as if I spoke too soon on the calendar issue.  This is very 
strange.  The edit boxes are now editable, but GLPI isn't taking what is typed 
into them.  For example, if I login to GLPI, go to reservations, select a 
reservable item, select show reservations and select book on an empty day I am 
shown a form to fill out to reserve the item.  I'm leaving the start day the 
same, but I am modifying the end date.  I'm entering all dates in yyyy-mm-dd 
format just like the preentered dates.  In my case I set up my reservation to 
start on 2007-01-28 and end on 2007-01-30.  When I click post, however, the 
reservation is set to start and end on 2007-01-28.  Any idea why this might be? 
 This was just an example, all the date fields appear to be like this now.
Thanks.
Ryan

Because it is not so simple :)

You do not need to edit the show$rand item but the data$rand item.

Try to replace :
echo "<input id='show$rand' type='text' name='____".$element."_show' readonly size='$size' value=\"".convDate($value)."\">"; echo "<input id='data$rand' type='hidden' name='$element' size='$size' value=\"".$value."\">";

By :

echo "<input id='data$rand' type='text' name='$element' size='$size' value=\"".$value."\">";

show$rand item is not needed in your case.

Julien



_______________________________________________
Glpi-user mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-user

Reply via email to