? Failure

User tests: Successful: Unsuccessful:

avatar colivier
colivier
24 Feb 2015

I have the same issue

#4260

I find that the proposed solution is not optimal because if there are many selected tags, it will create multiple input controls with the same name cf. code below

foreach ($this->value as $value)
{
    $html[] = '<input type="hidden" name="' . $this->name . '" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '"/>';
}

I find that a simple solution would be to remove the hidden controls and leave the name attribute on the select control that is disabled when the attribute readonly is set (line 51)

avatar colivier colivier - open - 24 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 24 Feb 2015
Labels Added: ?
avatar colivier colivier - change - 24 Feb 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-02-24 17:20:20
avatar colivier colivier - close - 24 Feb 2015
avatar colivier colivier - close - 24 Feb 2015
avatar colivier colivier - head_ref_deleted - 24 Feb 2015
avatar colivier
colivier - comment - 24 Feb 2015

In my case is ok because I don't need to submit the form but if the form need to be submit the values of the list field are not submit because the disabled attribute is set

I closed the PR

Add a Comment

Login with GitHub to post a comment