FormBuilder and frozen dates
| From: | Etienne van Tonder | Date: | Tue, 06 Sep 2005 03:07:18 +0000 |
| Subject: | FormBuilder and frozen dates | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20803@lists.php.net to get a copy of this message | ||
There are two issues with frozen dates, I wonder if other people have found
the same problem. Maybe I should be doing something I'm not??
1. If I use the $fb_userEditableFields array and I exclude a date field from
the list (ie I want it frozen) the date field is never frozen.
2. If the date in the DB is NULL the date always defaults to today's date.
This may be ok for editable dates but should not happen for frozen dates.
The problem is that in the function _date2array, if the date passed to it is
null it will return today's date.
Another question which may be related to DB_DO, is there a way I can prevent
certain fields from being updated when the form is submitted. I don't want
my frozen fields to be sent to the DB as they may overwrite new values.
Thanks,
Etienne.