? Success
Pull Request for # 9830

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
11 Apr 2016

Pull Request for Issue #9830

Testing Instructions

Create a single article with an intro and full image and a readmore
Set the article to registered only
Create a menu link to the article of type single article
In the menu options make sure show unauthorised links is set to show

Now check the menu item on the front end - you should see the introtext but not the intro image and when you login you see all the text and the full image

Apply the patch
Now check the menu item on the front end - you should see the introtext and the intro image and when you login you see all the text and the full image

Votes

# of Users Experiencing Issue
3/3
Average Importance Score
3.67

avatar brianteeman brianteeman - open - 11 Apr 2016
avatar brianteeman brianteeman - change - 11 Apr 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 11 Apr 2016
Category ACL Components
avatar brianteeman brianteeman - change - 11 Apr 2016
Rel_Number 0 9830
Relation Type Pull Request for
avatar brianteeman brianteeman - change - 11 Apr 2016
Easy No Yes
avatar Webdongle Webdongle - test_item - 12 Apr 2016 - Tested unsuccessfully
avatar Webdongle
Webdongle - comment - 12 Apr 2016

I have tested this item :red_circle: unsuccessfully on 030de77

With Show Voting set to 'Show' ... the voting dropdown box displays twice to guests


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

avatar smz
smz - comment - 12 Apr 2016

proposed some changes
sorry for the brevity (on the road...)

avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Apr 2016

This PR has received new commits.

CC: @Webdongle


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

avatar brianteeman
brianteeman - comment - 12 Apr 2016

Updated to remove double votes

avatar rgmears
rgmears - comment - 12 Apr 2016

Works for me.


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

avatar brianteeman brianteeman - alter_testresult - 12 Apr 2016 - rgmears: Tested successfully
avatar woluweb woluweb - test_item - 13 Apr 2016 - Tested successfully
avatar woluweb
woluweb - comment - 13 Apr 2016

I have tested this item :white_check_mark: successfully on dc144b3

Tested successfully on cc44ae1


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

avatar wojsmol
wojsmol - comment - 13 Apr 2016
avatar rgmears
rgmears - comment - 14 Apr 2016

@wojsmol

Please mark test result on ....

I don't know how to do that. Sorry.


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

avatar brianteeman
brianteeman - comment - 14 Apr 2016

@rgmears @wojsmol its ok I manually added his test :)


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

avatar smz
smz - comment - 14 Apr 2016

I cannot test now (on a train with no test environ with me) but by simple code review it is evident that lines 137-140 are a duplicate of line 87.

Both echoes the content generated by "afterDisplayTitle" plugins (probably a very seldom used event, but anyway...) which in case will be duplicated...

In Joomla events list (https://docs.joomla.org/Plugin/Events/Content) I don't find "afterDisplayTitle": is it the same as "onContentAfterTitle"?

avatar smz
smz - comment - 14 Apr 2016

In https://docs.joomla.org/Plugin/Events/Content a note in the "onContentAfterTitle" event description says that

... this event has special purpose in com_content for use in handling the introtext.

but I'm unsure of what this is or could be as no further specification is given.

What is evident from code is that content generated by this event is displayed only if the "show_intro" param is set Edit: set to "Hide".

avatar smz
smz - comment - 14 Apr 2016

Confirmed by testing:

Without:

without

With:

with

The "Test Aftertitle" plugin is:

<?php
defined('_JEXEC') or die;

class PlgContentTest_aftertitle extends JPlugin {

    // onContentAfterTitle handler
    public function onContentAfterTitle($context, &$article, &$params, $limitstart) {
        return '<h3>This is generated by the "Test Aftertitle" plugin</h3>';
    }

}
avatar smz smz - test_item - 15 Apr 2016 - Tested unsuccessfully
avatar smz
smz - comment - 15 Apr 2016

I have tested this item :red_circle: unsuccessfully on dc144b3

See above...


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 15 Apr 2016

This PR has received new commits.

CC: @rgmears, @smz, @Webdongle, @woluweb


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

avatar Webdongle
Webdongle - comment - 15 Apr 2016

As the patch has been updated because of the fail when tested with the edited plugin ... should the Testing Instructions be updated to take into account that part of the test ?

In https://docs.joomla.org/Plugin/Events/Content a note in the "onContentAfterTitle" event description says that

... this event has special purpose in com_content for use in handling the introtext.

Has me totally confused and am unsure how to perform the test with the edited plugin ?


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

avatar smz
smz - comment - 15 Apr 2016

@Webdongle
TBH, I'm as much confused as you are, and probably quite more (but I'll elaborate about that later on)

As far as regards testing instructions the last word is of course @brianteeman's one, but I can explain what I did in the PR I proposed to Brian and he later incorporated, if this can help.

1) I eliminated the duplicate display of output generated for the "onContentAfterTitle". This wasn't there at the beginning and was introduced (by mistake, IMHO) in Brian's PR. Eliminating this, thus, doesn't change the expected behaviour and hence testing instructions.

2) I added an extra processing step so that the intro text is passed to the "onContentPrepare" handler. This fixes the issue of directives like {loadposition} or {loadmodule} appearing verbatim in the generated output instead of being processed. I added this as I interpreted this was Brian wish when (while closing #9830) he said:

... better code than suggested before as it uses the layout correctly and the plugins (i hope) (my emphasis )

This second change requires of course also testing that those directives are indeed honoured (as they are, from my testing).

About this second change I'm also unsure (and I expressed my doubts directly to Brian) if it is correct to do that here or it would be better to perform that at an higher level (at the view level, probably) so that not only this template, but also all other templates using the "intro text" would benefit of the fix.


Unsure if off topic (about the "onContentAfterTitle" event and the "Show Intro Text" option).

The "Show intro text" option seems to be quite a strange beast. The description is:

If set to Show, the Intro Text of the article will show when you drill down to the article. If set to Hide, only the part of the article after the "Read More" break will show.

It indeed does that (intro text not displayed in the "Single Article" view if set to "Hide") but it also controls (with inverted logic) weather the content generated by the "onContentAfterTitle" should be displayed or not.

This is applied, apparently in an inconsistent way, throughout different views. For this, I think we'll need the memory of "old timers" to explain why this is done this way and what's the logic behind it (I'm calling @infograf768 for that, as apparently he did put his hands on that and probably should know...)

avatar conconnl conconnl - test_item - 15 Apr 2016 - Tested successfully
avatar conconnl
conconnl - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully on bc7d64c

Tested successful per instructions


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

avatar Simonkloostra Simonkloostra - test_item - 15 Apr 2016 - Tested successfully
avatar Simonkloostra
Simonkloostra - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully on bc7d64c

Testscenario executed successfully, intro-image is now shown in single-article view


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

avatar rgmears
rgmears - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully.

Intro Image shows.

{loadposition} and {loadmodule} both display content not code.

avatar joris85
joris85 - comment - 15 Apr 2016

Tested successfully,
As quest you do not see the intro image while you should see the intro image.


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

avatar klatte88
klatte88 - comment - 15 Apr 2016

Patch tested succesfully after patch intro image shows up as expected


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

avatar klatte88 klatte88 - test_item - 15 Apr 2016 - Tested successfully
avatar klatte88
klatte88 - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully on bc7d64c

problem as described recreated and solved after patch


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

avatar brianteeman brianteeman - change - 15 Apr 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 15 Apr 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 15 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 15 Apr 2016
Milestone Added:
avatar rgmears
rgmears - comment - 15 Apr 2016

Forgive the uninformed question, but, what does RTC mean?

avatar smz
smz - comment - 15 Apr 2016

@rgmears

Forgive the uninformed question, but, what does RTC mean?

Ready To Commit

@brianteeman
So you think it is OK to fix the "onContentPrepare" issue here?

avatar rdeutz rdeutz - change - 15 Apr 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-04-15 14:04:12
Closed_By rdeutz
avatar rdeutz rdeutz - close - 15 Apr 2016
avatar rdeutz rdeutz - merge - 15 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - close - 15 Apr 2016
avatar rdeutz rdeutz - reference | 140ecb3 - 15 Apr 16
avatar rdeutz rdeutz - merge - 15 Apr 2016
avatar rdeutz rdeutz - close - 15 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - change - 15 Apr 2016
Labels Removed: ?
avatar rgmears
rgmears - comment - 15 Apr 2016

Thanks @smz .

avatar brianteeman
brianteeman - comment - 15 Apr 2016

Create a new issue please

On 15 April 2016 at 15:04, Sergio Manzi notifications@github.com wrote:

@rgmears https://github.com/rgmears

Forgive the uninformed question, but, what does RTC mean?

Ready To Commit

@brianteeman https://github.com/brianteeman
So you think it is OK to fix the "onContentPrepare" issue here?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#9865 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar smz
smz - comment - 15 Apr 2016

about what?

avatar smz smz - reference | 1621e7f - 17 Apr 16
avatar smz
smz - comment - 17 Apr 2016

... pinging all who were involved in this as I amended it in #9964: thanks for testing and/or review.

avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:

Add a Comment

Login with GitHub to post a comment