Re: Changing event start date/time
Michael J Rubinsky <[email protected]> Thu, 14 Apr 2016 09:11:08 -0400
| Newsgroups | gmane.comp.horde.kronolith |
|---|---|
| Message-ID | <20160414091108.Horde.iJXWwvKgVGIENZ1etLxNKVo@h4.theupstairsroom.com> |
Quoting Test <[email protected]>: > Am 13.04.2016 um 14:37 schrieb Michael J Rubinsky: >> >> Quoting Philipp Faeustlin <[email protected]>: >> >>> Hi, >>> >>> I think found an fault or at least an unwanted behaviour. >>> >>> When editing an existing event start to empty fields and saving that >>> event. >>> >>> The results is an event that starts probably at day 0 in year 0. I >>> didn't scroll back that far, but the database entry for that event >>> says event_start = "0000-00-00 00:00:00". >>> The problem now is, as user your don't have a possibility to resolve >>> your mistake, because you're unable to edit or remove this event. >>> >>> As admin I had to change the event_start on database layer, to be able >>> to edit the event again. >>> >>> I think it shouldn't be possible to save an event with empty date, or >>> it should automatically save an working date (for example midnight >>> same day). >>> >>> Regards >>> >>> Philipp >>> >>> PS.: Tested with current firefox, chrome and up-to-date version of horde. >> >> Can you describe how you are emptying the event start field(s)? We >> already have code in place that prevents saving the event when the date >> field doesn't validate. I can't reproduce this locally - I get the >> expected error message in a notification bubble when trying to save. >> >> > In the edit event window I remove the content of "From","at" per > keyboard. On my system there is no notification bubble. > > How is the date field validated? It's validated in javascript when the field loses focus and checked again when the event is saved. If the form field is not parse-able into a date value, the event is not allowed to be saved. I just tested this again on the demo site at demo.horde.org and it works as expected. Do you see any javascript errors? > What is the intended structure on database layer for "event_start" > and "event_end"? It's a datetime value. > > -- > Philipp Fäustlin > Universität Hohenheim > Kommunikations-, Informations- und Medienzentrum (630) > IT-Dienste | Abt. Kommunikation, E-Learning u. Print | Mail > > Schloss, Westhof Süd | 70599 Stuttgart > Tel.: +49 711 459-22838 | Fax: +49 711 459-23449 > https://kim.uni-hohenheim.de/ > -- > kronolith mailing list > Frequently Asked Questions: http://wiki.horde.org/FAQ > To unsubscribe, mail: [email protected] -- mike The Horde Project http://www.horde.org https://www.facebook.com/hordeproject https://www.twitter.com/hordeproject -- kronolith mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
smime.p7s
(application/pkcs7-signature, 5.6 KB) - not displayed