We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7aa31 commit ad6c2e9Copy full SHA for ad6c2e9
HTML/QuickForm2/Element/Hierselect.php
@@ -332,7 +332,8 @@ private function _generateInlineScript()
332
{
333
// we store values and options with id of first select rather than with
334
// the element's name since the former has more chances to be unique
335
- $selectId = (reset($this->elements) ?: $this)->getId();
+ $element = reset($this->elements) ?: $this;
336
+ $selectId = $element->getId();
337
$cr = self::getOption(self::OPTION_LINEBREAK);
338
$js = "qf.elements.hierselect.defaults['{$selectId}'] = " .
339
HTML_QuickForm2_JavascriptBuilder::encode($this->_values) . ";{$cr}";
0 commit comments