[BUGFIX] Use `find()` to get option tags from select 09/48209/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 9 May 2016 15:04:25 +0000 (17:04 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 18 May 2016 12:43:07 +0000 (14:43 +0200)
commitf790645247241c34f691077b35d3d928b4467164
treee70b1c5fbd00292f734a32fd3937427a7d7df743
parentb500cc4a18ee788a63a356fc34d4b7cc0d3a161a
[BUGFIX] Use `find()` to get option tags from select

Using `children()` to get the option tags from the select fields
will fail if the select field contains `optgroup` tags (e.g. rendered
by a hook).

This patch replaces `children()` with `find()` to cover this
edge case.

Resolves: #76097
Releases: master, 7.6
Change-Id: Ib80f422d465d9e48232b1820e524a01a97eb94e6
Reviewed-on: https://review.typo3.org/48209
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js