? Success
Pull Request for # 7533

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
23 Jul 2015

Contact list displays trashed items - this PR fixes it

Trashed

Create multiple articles and contacts.
Create two menu items for "Articles » Category List" and "Contacts » List Contacts in a Category"
Trash one article and one contact
Check the menus - the trashed items do not appear
Login to the frontend as admin (or anyone with Special access)
Check the article menu - the trashed article does not appear
Check the contact menu - the trashed contact does appear

Unpublished

Create multiple articles and contacts.
Create two menu items for "Articles » Category List" and "Contacts » List Contacts in a Category"
Unpublish one article and one contact
Check the menus - the unpublished items do not appear
Login to the frontend as admin (or anyone with Special access)
Check the article menu - the unpublished article does appear with a flag saying unpublished
Check the contact menu - the unpublished contact does appear with a flag saying unpublished

Before

screen shot 2015-07-23 at 09 14 53

avatar brianteeman brianteeman - open - 23 Jul 2015
avatar brianteeman brianteeman - change - 23 Jul 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jul 2015
Labels Added: ?
avatar brianteeman brianteeman - change - 23 Jul 2015
Category ACL
avatar brianteeman brianteeman - change - 23 Jul 2015
The description was changed
Rel_Number 0 7534
Relation Type Pull Request for
Easy No Yes
avatar brianteeman brianteeman - change - 23 Jul 2015
Rel_Number 7534 7533
avatar Fedik Fedik - test_item - 23 Jul 2015 - Tested successfully
avatar Fedik
Fedik - comment - 23 Jul 2015

test good

avatar jwaisner
jwaisner - comment - 24 Jul 2015

@test

PR works as intended.


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

avatar jwaisner jwaisner - test_item - 24 Jul 2015 - Tested successfully
avatar brianteeman brianteeman - change - 24 Jul 2015
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 24 Jul 2015

Setting RTC - thanks for testing


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

avatar joomla-cms-bot joomla-cms-bot - change - 24 Jul 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 24 Jul 2015

There is a small issue with the code where you set the state.
You set it as an array, but that will not do anything because the code will only act on the state if it is numeric, an array is ignored as an invalid state.
That's probably because you copied it from ContentModelCategory, that one in the end uses ContentModelArticles which supports an array in the state.

You can just remove the lines which set the state (286-289). It will work exactly the same.

avatar Bakual Bakual - change - 24 Jul 2015
Status Ready to Commit Pending
avatar Bakual Bakual - change - 24 Jul 2015
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 24 Jul 2015

Just checking

avatar brianteeman
brianteeman - comment - 24 Jul 2015

Done and done the same in the newsfeeds PR

avatar brianteeman brianteeman - change - 24 Jul 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-07-24 07:59:50
Closed_By brianteeman
avatar brianteeman brianteeman - close - 24 Jul 2015
avatar Bakual Bakual - close - 24 Jul 2015
avatar joomla-cms-bot joomla-cms-bot - close - 24 Jul 2015
avatar Bakual
Bakual - comment - 24 Jul 2015

All good now, thanks!

avatar Bakual Bakual - change - 24 Jul 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jul 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment