Make the end-time selection empty if not used
mpitz opened this issue ยท 8 comments
I doubt that this is possible, because tl_calendar_events.endTime
cannot be empty.
Why can this not be empty? Can't you check: if empty than equal starttime, if you need it within your logic?
It's because tl_calendar.startTime
and tl_calendar.endTime
are the two main fields that store the calculated start and end time (e.g. see here). And the end time cannot be null
.
And the end time cannot be null.
As your query does not work with NULL?
@mpitz I've this in my dcaconfig
/** Events */
// Set endtime default to empty
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['endTime']['default'] = NULL;
With this setting, the End time
is not set automatically when you activate Add time
. So you can change the automatically set Start time
and if you leave the field End time
empty it gets filled with your Start time
when you save the event.
BTW, why gets the Start time
filled with the current time? I think this will not happen, that we want the Start time
to be the current time.
So you can change the automatically set
Start time
and if you leave the fieldEnd time
empty it gets filled with yourStart time
when you save the event.
But that's not what @mpitz wants. He wants the field to remain blank for open end events.
But that's not what @mpitz wants. He wants the field to remain blank for open end even
Right, that's not what I suggested. It is annoying and error prone if you have the set the End time again if you want to leave it open, after you've changed the Start time.
Wow. Thank you. ๐ ๐ฅ ๐ฏ