mirror of https://github.com/joomla/joomla-cms.git
[4.4] Fix showon for list field (no multiple) (#39546)
* [4.2] Fix showon for list field * duplicate id if multiple * apply for layout fancy-select
This commit is contained in:
parent
708b1eaa8a
commit
4e1e1656ce
|
@ -85,7 +85,7 @@ if ($readonly) {
|
|||
$html[] = '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($val, ENT_COMPAT, 'UTF-8') . '">';
|
||||
}
|
||||
} else {
|
||||
$html[] = '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '">';
|
||||
$html[] = '<input type="hidden" id="' . $id . '-value" name="' . $name . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '">';
|
||||
}
|
||||
} else // Create a regular list.
|
||||
{
|
||||
|
|
|
@ -77,7 +77,7 @@ if ($readonly) {
|
|||
$html[] = '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($val, ENT_COMPAT, 'UTF-8') . '">';
|
||||
}
|
||||
} else {
|
||||
$html[] = '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '">';
|
||||
$html[] = '<input type="hidden" id="' . $id . '-value" name="' . $name . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '">';
|
||||
}
|
||||
} else // Create a regular list passing the arguments in an array.
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue