? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
22 Sep 2017

Pull Request for Issue #18016.

Summary of Changes

Prepares the intro text within the same prepare event. Removes double onContentPrepare event triggering.

Testing Instructions

See #17175 and #18016.

Expected result

No twice event triggering and field is rendered in intro text as well.

Actual result

Side effects like modules get loaded twice.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Sep 2017
Category Front End com_content Plugins
avatar laoneo laoneo - open - 22 Sep 2017
avatar laoneo laoneo - change - 22 Sep 2017
Status New Pending
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Sep 2017

@laoneo which is the second Issue you wanted to link (you take #18016 twice)? Guess ##18065

avatar laoneo laoneo - change - 22 Sep 2017
The description was changed
avatar laoneo laoneo - edited - 22 Sep 2017
avatar laoneo
laoneo - comment - 22 Sep 2017

Thanks for the hint, changed it in the description.

avatar regularlabs
regularlabs - comment - 22 Sep 2017

The issue with the double triggering of the onContentPrepare is fixed.
I have not tested if the custom fields plugin itself still works as it should.

avatar laoneo
laoneo - comment - 22 Sep 2017

Please mark it as success. Your code improvements suggestions should be done on a follow up pr as I don't want to get the risk of a new bug.

avatar sandewt sandewt - test_item - 22 Sep 2017 - Tested successfully
avatar sandewt
sandewt - comment - 22 Sep 2017

I have tested this item successfully on e8e0329

Article View that was opened via a link from Article Category List: Module loaded twice #18016

Plugin content pagebreak does not work for second page and next #17830


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

For clarity: I tested #18066 Fixes the double event firing
Joomla! 3.8.1-dev Development
PHP 7.0.15
Xampp

avatar laoneo laoneo - change - 23 Sep 2017
Labels Added: ?
avatar laoneo
laoneo - comment - 23 Sep 2017

Fixed only some code styles. Guess this can be marked as RTC as we have two successful tests.

avatar n9iels n9iels - test_item - 25 Sep 2017 - Tested successfully
avatar n9iels
n9iels - comment - 25 Sep 2017

I have tested this item successfully on 366588c


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Sep 2017

@sandewt can you please test again?

avatar wojsmol
wojsmol - comment - 26 Sep 2017

@franz-wohlkoenig IMHO as 366588c add only dockblock we can set RTC with one good test from @nibra .

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Sep 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Sep 2017

RTC after successful tests. As always Release Lead decide if it get merged.

@wojsmol Thanks for Hint.

avatar Bakual
Bakual - comment - 26 Sep 2017

Doesn't that mean that when the field content plugin is disabled, no events are processed anymore?
Doesn't look right to me.

avatar n9iels
n9iels - comment - 26 Sep 2017

@Bakual is right. Unless there is another point where onContentPrepare is called, this event won't be fired if the fields plugin is disabled

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Sep 2017

remove RTC?

avatar regularlabs
regularlabs - comment - 26 Sep 2017

Isn't the whole idea for this change to trigger the fields plugin over the required article data?
So it makes sense that this won't (have to) do anything in the fields plugin is not enabled.

The initial onContentPrepare trigger is still there.
So what events do you mean?
https://github.com/joomla/joomla-cms/pull/18066/files#diff-a2fbd25d7bac224516450abdd42cd57bL190

avatar Bakual
Bakual - comment - 26 Sep 2017

@regularlabs You're right, it only reverts the introtext part added in a previous PR.
Still looks a bit wrong to me to have com_content specific stuff in the fields plugin.

avatar regularlabs
regularlabs - comment - 26 Sep 2017

Well, that's a bit beyond this PR to discuss that.
But the way the onContentPrepare event (and other content triggers) work in Joomla pretty much forces plugins to check for com_content related stuff. This is because the full $item object is passed to the event, not a simple string. Not saying that is a bad thing, as it makes it a lot more flexible. But it does mean the plugins need to decide on what $item values it wants to do stuff on.
If you want to also be able to use the fields plugin in category descriptions - for instance - then the plugin would have to do its thing specifically on the $item->description value too.

avatar Bakual
Bakual - comment - 26 Sep 2017

True enough.

avatar mbabker mbabker - change - 26 Sep 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-09-26 11:59:01
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 26 Sep 2017
avatar mbabker mbabker - merge - 26 Sep 2017
avatar regularlabs
regularlabs - comment - 26 Sep 2017

Great ?

avatar regularlabs
regularlabs - comment - 26 Sep 2017

@mbabker Just to throw this in perspective:
IMHO this is a very important fix that should be rolled out asap.
Without the fix, websites can potentially load a lot slower and even break (which is already happening to many).
So upgrading to Joomla 3.8 is currently detrimental for many websites.

avatar mbabker
mbabker - comment - 26 Sep 2017

Well aware of that. I'm trying to hold off though on a 3.8.1 until we at least have a grasp on everything that's being reported so I'm not spending 10-15 hours per week prepping and rolling releases until it's all sorted. Depending on how things go the rest of this week we can probably do 3.8.1 next week.

avatar sandewt
sandewt - comment - 27 Sep 2017

"@sandewt can you please test again?" Request from @franz-wohlkoenig

I see in the meantime that the code is merged.
I tested the issues #18016, #17830 and #17175 with success in the latest version of joomla-staging-cms.

But I see sometimes, by using some other content (!), that the menus in Protostar (position 7 - at the right) disappeared to the bottom !?
I can not explain this.

Is that a known or a new issue?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18066.
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Sep 2017

@sandewt can you please open a new Issue?

avatar sandewt
sandewt - comment - 28 Sep 2017

@franz-wohlkoenig

Some text in articles I used, were 'accidentally' embedded by div's. In combination with NOT 'show the intro text', causes that the menus disappeared to the bottom. So I can explain this behavior.

In my opinion, it is not a new issue.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Sep 2017

its about getting Notice as this PR is merged.

Add a Comment

Login with GitHub to post a comment