Bug #23843
closedDate selector not working correctly in flexform with steps
100%
Description
The date selector doesn't work at all when adding a new item in the backend in a plugin that uses a flexform with steps. Only existing (already saved) dates can be edited using the date selector popup.
Example flexform:
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<ROOT>
<TCEforms>
<sheetTitle>Example</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<steps type="array">
<type>array</type>
<section>1</section>
<tx_templavoila type="array">
<title>Items</title>
</tx_templavoila>
<el type="array">
<items type="array">
<type>array</type>
<tx_templavoila type="array">
<title>Item</title>
<eType>input</eType>
</tx_templavoila>
<el type="array">
<title>
<TCEforms>
<label>Title</label>
<config>
<type>input</type>
<size>24</size>
<eval>trim,required</eval>
</config>
</TCEforms>
</title>
<date>
<TCEforms>
<label>Date</label>
<config>
<type>input</type>
<size>8</size>
<eval>date,required</eval>
<max>20</max>
<checkbox>1</checkbox>
</config>
</TCEforms>
</date>
</el>
</items>
</el>
</steps>
</el>
</ROOT>
</T3DataStructure>
(issue imported from #M16131)
Updated by Gijs Oliemans about 14 years ago
This issue affects product version 4.4.4 as well.
Updated by Soeren Kracker almost 14 years ago
This issue affects me too. Version 4.4.4
Templavoila FCE with sections. If i add a new date field for the section, the calendar won't show up until the FCE is saved again.
Updated by Gijs Oliemans almost 14 years ago
This issue also affects version 4.5.0
Updated by Stefan Rotsch almost 13 years ago
- Target version deleted (
0)
This issue is still present with TYPO3 4.5.8.
The onClick-event for opening the datepicker is attached to the datepicker icons when loading the page. There is no update-method which adds the event to new sections, so the icons are without function until the form is saved.
Related to this, IDs of input fields are not unique when adding more than one new section before saving. They have to be randomized on inserting a new section in order to make the datepicker work properly.
I have submitted a Patch to Gerrit, maybe you could try if it fixes this issue for you.
Updated by Gerrit Code Review almost 13 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8674
Updated by Gerrit Code Review almost 13 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/8745
Updated by Gerrit Code Review almost 13 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/8746
Updated by Anonymous almost 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1c9e0b6a8c44f60a02fa64dad3197dc6642f610f.
Updated by Gerrit Code Review almost 13 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/8746
Updated by Anonymous almost 13 years ago
- Status changed from Under Review to Resolved
Applied in changeset c669bda6992913a93ed26ab23e1e2d24145d33ab.