Closed (duplicate)
Project:
Event
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
12 Jun 2006 at 18:30 UTC
Updated:
29 May 2007 at 04:22 UTC
Jump to comment: Most recent file
Presently the default 'now' values are a hinderance - and lead to incorrectly filled forms.
Events can have just a start (by having the same end time) but this isn't clear.
There seems to be little user input validation.
Proposed solution:
Make 'end' clearly optional. Say so and have it blank by default.
Add validation checks, that can also handle blank end dates.
Notes:
Validation is ruthless, it maybe worth changing some to 'use default value' and drupal_set_message. Rather than form_set_error? If so which ones, when?
Added an id tag to make it possible for future js to enable optional auto-filling of end time form start
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | event-end.patch.txt | 8.49 KB | charlesc |
| event.20060612.patch.txt | 9.93 KB | ekes |
Comments
Comment #1
RayZ commentedComment #2
dodorama commentedThis sounds like a useful feature. But I think that this patch doesn't apply to the last event module. I run the patch and two trunks failed. These are the results of the patching process:
Anyone knows how to update this patch?
Any plan to include this feature in core?
Thanks for this great module.
Comment #3
charlesc commentedI manually patched the event.module and build a patch file for it.
Comment #4
csc4 commentedThis seems like a really useful patch - is there any chance of it being committed?
Comment #5
killes@www.drop.org commentedI think a imple text below the form which explains how it works would be better.
Comment #6
BobLouis commentedThe above patch doesn't seem to apply to 5.1 version.
Is there a way to solve this issue :
- make end date optional
- validate start date and end date (eg: start date >= today, end date >= start date, etc.)
I understand we can use the Forms API. If that is the solution, could someone give an example of the code to use to perform date format checks (since I am not a php programmer at all!).
Your help is appreciated!
Comment #7
michelleSee http://drupal.org/node/147558 to co-ordinate discussion of UI change.
Michelle