? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
11 Mar 2017

Pull Request for Issue #14437.

Summary of Changes

Renames the property fields on the onContentPrepare event to something more unique jcfields.

Testing Instructions

Just create some custom fields for articles and open the article on the front.
Additionally you can in the file components/com_content/views/article/tmpl/default.php add on line 25 the following code snippet:
print_r($this->item);die;

Expected result

All should work as expected, especially for 3rd party components which do have a fields property on their entities.

For the print_r test, an object with is printed which contains a property jcfields which contains the custom fields.

Actual result

3rd party components which do have a fields property on their entities got changed to the com_fields.

An object with is printed which contains a property fields which contains the custom fields.

Documentation Changes Required

If the developer documentation is written, then it needs to be changed that the property fields will be renamed to jcfields.

avatar laoneo laoneo - open - 11 Mar 2017
avatar laoneo laoneo - change - 11 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2017
Category Front End Plugins
avatar laoneo laoneo - change - 11 Mar 2017
The description was changed
avatar laoneo laoneo - edited - 11 Mar 2017
avatar laoneo laoneo - change - 11 Mar 2017
Labels Added: ?
avatar laoneo
laoneo - comment - 11 Mar 2017

You'r right, fixed.

avatar laoneo laoneo - change - 11 Mar 2017
Title
[com_Fields] Rename the fields property to jcfields
[com_fields] Rename the fields property to jcfields
avatar laoneo laoneo - edited - 11 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2017
Category Front End Plugins Front End com_contact com_fields Plugins Templates (site)
avatar laoneo
laoneo - comment - 11 Mar 2017

Thanks @Bakual, changed them.

avatar b2z
b2z - comment - 13 Mar 2017

@laoneo as you have changed more files Testing Instructions should be changed?

avatar laoneo laoneo - change - 13 Mar 2017
The description was changed
avatar laoneo laoneo - edited - 13 Mar 2017
avatar laoneo
laoneo - comment - 13 Mar 2017

True, changed it.

avatar b2z
b2z - comment - 13 Mar 2017

Applied the patch - fields are not being saved with article :(

avatar laoneo
laoneo - comment - 14 Mar 2017

Did you edit on the front end?

avatar b2z
b2z - comment - 14 Mar 2017

Nope in back-end.

avatar laoneo
laoneo - comment - 15 Mar 2017

Really strange, are you sure you are working on the latest staging? Did you get any error?

avatar b2z
b2z - comment - 15 Mar 2017

Opps, I was testing on beta3. No errors, I will try on staging.

avatar b2z b2z - test_item - 15 Mar 2017 - Tested successfully
avatar b2z
b2z - comment - 15 Mar 2017

I have tested this item successfully on d310fe3

Content and contact fields are ok.


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

avatar b2z
b2z - comment - 17 Mar 2017

@ggppdk please help to test. Thanks!

avatar b2z
b2z - comment - 24 Mar 2017

@laoneo shlould it be Joomla! 3.7 milestone? It's a potential B/C break for 3rd party extensions.

avatar laoneo
laoneo - comment - 24 Mar 2017

Why, com_fields was not released, so we can't break bc.

avatar b2z
b2z - comment - 24 Mar 2017

@laoneo ok let me rephrase - is it critical for 3.7 release or not? I mean breaking 3rd party extensions. Or 3rd party extensions must re-implement their code to support 3.7?

avatar Bakual
Bakual - comment - 24 Mar 2017

This should go into 3.7.0. Afterwards it would only be possible for 4.0 since it would break implementations

avatar laoneo
laoneo - comment - 25 Mar 2017

@b2z now I got it. Yes after the release, we can't change it before 4 anymore, even then I think ti would be not so a good idea. So yes this should go into 3.7. Hope we find one more tester.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Mar 2017

@laoneo don't understand test instructions like

For the print_r test, an object with is printed which contains a property jcfields which contains the custom fields.

ar above my skills.

If there is a 3rd-Party-Component to install i can test.

avatar laoneo
laoneo - comment - 25 Mar 2017

That's mainly just a test that the field has the right name which will be used for extensions. More important are that the rest is working as expected.

avatar joomdonation joomdonation - test_item - 25 Mar 2017 - Tested successfully
avatar joomdonation
joomdonation - comment - 25 Mar 2017

I have tested this item successfully on d310fe3

Works as expected. Tested with article and contact page


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Mar 2017

RTC as there are 2 successfully Tests?

avatar jeckodevelopment jeckodevelopment - change - 25 Mar 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 25 Mar 2017

RTC


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

avatar rdeutz rdeutz - change - 25 Mar 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-03-25 19:42:32
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 25 Mar 2017
avatar rdeutz rdeutz - merge - 25 Mar 2017

Add a Comment

Login with GitHub to post a comment