Page MenuHomePhabricator

input type=datepicker does not store data on multiple forms on first attempt
Closed, ResolvedPublic

Description

When adding a new item to a ''multiple-form'' dates from input type=patepicker are not stored in the first attempt. User has to go back to the form and reenter the date to the existing items. When entering more then one item in one edit none of the dates is stored in first attempt.

Event Timeline

I don't understand this. What's the difference between the first attempt and the second attempt?

On the second attempt the date is stored for existing items.

Okay, but why does it work for the second attempt and not the first? Is something being done differently the second time?

I think not. Just open the form, enter the date and save the page. The only difference I see is the already exisiting item on the second time.

Okay, so for you, the "datepicker" input saves its value to the page when editing an existing page, but not when creating a new page?

By the way, I should have asked before: what version of Page Forms are you running?

Okay, so for you, the "datepicker" input saves its value to the page when editing an existing page, but not when creating a new page?

No, this just hapens in '''multiple''' Forms while creating new items. I have not seen this while creating new pages generally. I can check this.

  • CHECKED: This problem does not occur while creating new pages by simple forms.

By the way, I should have asked before: what version of Page Forms are you running?

PageForms 5.0

Change 663066 had a related patch set uploaded (by Yaron Koren; owner: Yaron Koren):
[mediawiki/extensions/PageForms@master] Fix handling of date(time)picker in new template instances

https://gerrit.wikimedia.org/r/663066

Change 663066 merged by jenkins-bot:
[mediawiki/extensions/PageForms@master] Fix handling of date(time)picker in new template instances

https://gerrit.wikimedia.org/r/663066

Okay, I was able to reproduce the problem. Sorry about that! Hopefully this is the last of the new datepicker-related issues. I just checked in what I think is a fix for this.

Ok, it works for me too. Thank you.

Carchaias claimed this task.