? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
7 Feb 2018

Summary of Changes

In the case that the subform used in side a fields plugin is not multible my xDebug cry's

Testing Instructions

Change: https://github.com/joomla/joomla-cms/blob/staging/plugins/fields/checkboxes/params/checkboxes.xml#L12 to multiple="false"
&
Change: https://github.com/joomla/joomla-cms/blob/staging/plugins/fields/checkboxes/checkboxes.xml#L31 to multiple="false"

Try to save and make sure you changed the value fields before you hit save.

Expected result

No error when using XDebug
image

Actual result

The point is that if we have a multibe subform the values come in this structure:
image

If they are switched to not multible they come in this structure:
image

It is obvious that the current code can't work so here is a proposed fix.

cc @laoneo

avatar zero-24 zero-24 - open - 7 Feb 2018
avatar zero-24 zero-24 - change - 7 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Feb 2018
Category Administration com_fields
avatar zero-24 zero-24 - change - 7 Feb 2018
Labels Added: ?
avatar joomdonation
joomdonation - comment - 11 Feb 2018

If change multiple="false" as mentioned in the testing instructions, then there is another error come up when adding new article (the custom field is created for article)

Could you please look at the issue, too so that we can get it sorted in one PR?

error

avatar zero-24
zero-24 - comment - 12 Feb 2018

Should be fixed with the last commit @joomdonation . Please test! Thanks!

avatar zero-24
zero-24 - comment - 28 Jul 2018

Isn't this a bug we should fix at some day? Given that this is a valid use case that result into this problem fixed here?

avatar zero-24 zero-24 - change - 22 Sep 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-09-22 17:07:27
Closed_By zero-24
avatar zero-24 zero-24 - close - 22 Sep 2018

Add a Comment

Login with GitHub to post a comment