? ? Failure
Referenced as Duplicate of: # 16146

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
7 Jan 2017

This cleans up canDelete, canEdit and canEditState functions so they always return a boolean and are consistent in how they operate (they can return null in many cases instead of the documented boolean). There are no actual changes to functionality here so theoretically this is code review.

But feel free to test that the authorisation checks on ability to edit, publish/unpublish and delete are unaffected

avatar wilsonge wilsonge - open - 7 Jan 2017
avatar wilsonge wilsonge - change - 7 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2017
Category Administration com_banners com_contact com_content com_contenthistory com_fields com_menus com_modules com_newsfeeds com_redirect com_tags Front End com_config
avatar wilsonge wilsonge - change - 18 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2017
Title
Can delete
[com_fields] Can delete
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Title
Can delete
[com_fields] Can delete
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Apr 2017
avatar brianteeman
brianteeman - comment - 20 May 2017

@wilsonge please can you look at resolving the conflicts here

avatar wilsonge wilsonge - change - 21 May 2017
Title
[com_fields] Can delete
Cleanup of canDelete, canEdit and canEditState in Component Models
avatar wilsonge wilsonge - edited - 21 May 2017
avatar wilsonge wilsonge - change - 21 May 2017
Title
[com_fields] Can delete
Cleanup of canDelete, canEdit and canEditState in Component Models
avatar wilsonge
wilsonge - comment - 21 May 2017

Done :)

avatar Harmageddon
Harmageddon - comment - 22 May 2017

It seems to me that the if (!empty($record->id)... is the wrong way around in almost every file of this PR. The first one looks correct with if (empty($record->id).

Try to delete a client from the banners component or any other item in an affected component. It fails with this PR.

avatar brianteeman
brianteeman - comment - 22 Jul 2018

@wilsonge can you look at the comments from @Harmageddon please

c3bebdf 3 Aug 2018 avatar wilsonge Fix
7ebd7f4 3 Aug 2018 avatar wilsonge Fix
6ac70f3 3 Aug 2018 avatar wilsonge Fix
638a436 3 Aug 2018 avatar wilsonge Fix
893e81d 3 Aug 2018 avatar wilsonge Fix
8626190 3 Aug 2018 avatar wilsonge Fix
31de08e 3 Aug 2018 avatar wilsonge Fix
1491c37 3 Aug 2018 avatar wilsonge Fix
avatar wilsonge
wilsonge - comment - 3 Aug 2018

Fixed :) - nice spot @Harmageddon

avatar Hackwar Hackwar - test_item - 30 Jun 2019 - Tested successfully
avatar Hackwar
Hackwar - comment - 30 Jun 2019

I have tested this item successfully on b702f80

Done a code review and found this to be okay.


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

avatar Quy Quy - test_item - 1 Jul 2019 - Tested successfully
avatar Quy
Quy - comment - 1 Jul 2019

I have tested this item successfully on f29ab48


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

avatar Quy Quy - change - 1 Jul 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 1 Jul 2019

RTC


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

avatar Quy
Quy - comment - 1 Jul 2019

RTC


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

avatar HLeithner HLeithner - change - 1 Jul 2019
Labels Added: ?
avatar HLeithner HLeithner - close - 1 Jul 2019
avatar HLeithner HLeithner - merge - 1 Jul 2019
avatar HLeithner
HLeithner - comment - 1 Jul 2019

thx

avatar HLeithner HLeithner - change - 1 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-01 21:12:15
Closed_By HLeithner

Add a Comment

Login with GitHub to post a comment