? Failure

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
17 Jun 2017

Summary of Changes

This PR enforce, that the value is an array, because I had the case, that I get an object and the field stopped working.

Testing Instructions

Apply the patch, it should work like before.

avatar bembelimen bembelimen - open - 17 Jun 2017
avatar bembelimen bembelimen - change - 17 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2017
Category Libraries
avatar coolcat-creations coolcat-creations - test_item - 17 Jun 2017 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 17 Jun 2017

I have tested this item successfully on fb04de3

Now the values save correctly and are also shown in the subform field


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16733.

avatar coolcat-creations coolcat-creations - test_item - 17 Jun 2017 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 17 Jun 2017

I have tested this item successfully on fb04de3

Now the values save correctly and are also shown in the subform field


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16733.

avatar laoneo
laoneo - comment - 17 Jun 2017

Did you get here an object produced in core or by an extension? Because there should never arrive here an object if all is working as it should. If there is code in core which passes an object, then the bug is probably on that edge.

avatar bembelimen
bembelimen - comment - 18 Jun 2017

Hi @laoneo is there any subform in the core?
The "problem" is, that you can give an array or an object to JForm, so somewhere has to be a object => array converter

avatar laoneo
laoneo - comment - 19 Jun 2017

Yes the list based custom fields.

avatar coolcat-creations
coolcat-creations - comment - 19 Jun 2017

Sorry offtopic: #15723 I thought Custom Fields don´t support subforms. But true - the listfield is one. But why does this work but custom CustomFields not?

avatar bembelimen
bembelimen - comment - 24 Jun 2017

@laoneo could you please evaluate your thoughts?
My view is: at the moment it's possible, that values could be non-arrays, it doesn't matter where they come from, and the field has to take care for. But I'm open for all suggestions...

avatar Didldu-Florian
Didldu-Florian - comment - 24 Jun 2017

I have tested this item successfully on fb04de3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16733.

avatar Didldu-Florian Didldu-Florian - test_item - 24 Jun 2017 - Tested successfully
avatar Didldu-Florian
Didldu-Florian - comment - 24 Jun 2017

I have tested this item successfully on fb04de3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16733.

avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Jun 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Jun 2017

RTC after two successful tests.

avatar zero-24 zero-24 - change - 24 Jun 2017
Milestone Added:
avatar laoneo
laoneo - comment - 25 Jun 2017

I just fear that it can have unexpected behaviors if an object is passed. @bembelimen where and how do you pass the object, perhaps I do miss something here.

avatar rdeutz rdeutz - change - 11 Jul 2017
Milestone Added:
avatar rdeutz rdeutz - change - 11 Jul 2017
Milestone Removed:
avatar mbabker
mbabker - comment - 29 Jul 2017

@bembelimen any feedback on Allon's last comment?

avatar bembelimen
bembelimen - comment - 29 Jul 2017

I'm not sure, what I should answer here?
If the data is an object, you'll get an error.

The object is passed via $form->bind($data);

The question is: what should break here, because the field expect an array...

avatar mbabker mbabker - change - 6 Aug 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-08-06 16:20:14
Closed_By mbabker
avatar mbabker mbabker - close - 6 Aug 2017
avatar mbabker mbabker - merge - 6 Aug 2017

Add a Comment

Login with GitHub to post a comment