? ? ? Success

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
13 May 2019

Pull Request for Issue #20810. Redo of #20811 for 4.0.

Summary of Changes

Moves early return when no items are found to the layout. This way the layout is always rendered, allowing users to show custom content when no items are found.
Also removes previously unused message.

Testing Instructions

On a site without tagged items publish Tags - Similar module.
Create module's layout override containing some custom code/message.
Check if the module is displayed.

Expected result

Module is displayed.

Actual result

Module not displayed.

Documentation Changes Required

Probably not.

avatar SharkyKZ SharkyKZ - open - 13 May 2019
avatar SharkyKZ SharkyKZ - change - 13 May 2019
Status New Pending
avatar SharkyKZ SharkyKZ - change - 13 May 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 13 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 13 May 2019
Category Language & Strings Modules Front End
avatar brianteeman
brianteeman - comment - 13 May 2019

I am not in favour of this change as we have had lots of requests to ensure that a module is not rendered at all if there is no content - this does the opposite

avatar HLeithner
HLeithner - comment - 13 May 2019

But it's the better solution, the layout should decide what it should do if the list is empty.

avatar SharkyKZ
SharkyKZ - comment - 14 May 2019

@brianteeman see discussion in #20811. If you're talking about empty module positions appearing in templates, we get them anyways. There's a PR #19416 for fixing that.

avatar SharkyKZ SharkyKZ - change - 14 May 2019
Labels Added: ? ?
avatar Quy
Quy - comment - 14 May 2019

I have tested this item successfully on 0336044


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

avatar Quy Quy - test_item - 14 May 2019 - Tested successfully
avatar richard67
richard67 - comment - 31 May 2019

I have tested this item successfully on 0336044


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

avatar richard67
richard67 - comment - 31 May 2019

I have tested this item successfully on 0336044


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

avatar richard67 richard67 - test_item - 31 May 2019 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 31 May 2019
Title
[4.0][mod_tags_similar] Always render module layout
[4.0] [mod_tags_similar] Always render module layout
avatar franz-wohlkoenig franz-wohlkoenig - edited - 31 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 31 May 2019
Title
[4.0][mod_tags_similar] Always render module layout
[4.0] [mod_tags_similar] Always render module layout
avatar franz-wohlkoenig franz-wohlkoenig - change - 31 May 2019
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 May 2019

Status "Ready To Commit".

avatar Quy
Quy - comment - 5 Jun 2019

@wilsonge @roland-d Please merge. Similar to #25071.

avatar wilsonge wilsonge - change - 7 Jun 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-07 23:33:36
Closed_By wilsonge
avatar wilsonge wilsonge - close - 7 Jun 2019
avatar wilsonge wilsonge - merge - 7 Jun 2019
avatar wilsonge
wilsonge - comment - 7 Jun 2019

Thanks!

Add a Comment

Login with GitHub to post a comment