Page MenuHomePhabricator

Datetime fields not saving value on first edit, not working without datepicker
Closed, ResolvedPublic

Description

Hai,

There is a lot wrong with the datetime input in SMW.

1: in order for a datetimepicker to work, a datepicker _must_ first be called. We solve that by using an invisible div: https://wiki.sha2017.org/index.php?title=Form:Lightning/Event&action=edit

2: in this form, and others, the first selected value of the datetimepicker (when creating a new thing) is never saved. It is only saved after editing the existing value. Bulk adding is impossible in this way.

You can try here:
https://wiki.sha2017.org/index.php?title=Form:Lightning/Event&action=edit

Regards,
Elger / Stitch

Event Timeline

Hi - to be clear, all the form stuff is part of the Page Forms extension, not Semantic MediaWiki. (I guess you knew that, since you assigned it to the right place.

For the first bug - you seem to have uncovered a bug in the "datetimepicker" input when it's part of a multiple-instance template; I'll have to look into that.

I don't understand the second bug; I was able to create this page with just a minimum of effort:

https://wiki.sha2017.org/index.php?title=Yaron_test&action=edit

What exactly is not working?

Yaron_Koren claimed this task.

I believe the first issue was resolved, and the second issue remains unknown.