? Success

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
6 Feb 2015

This PR fix a typo at the ContactModelContact and move one JFactory::getUser(); call.

Joomla-bugs reference

http://www.joomla-bugs.de/forum/index.php/topic,649.msg3050.html#new

avatar zero-24 zero-24 - open - 6 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 6 Feb 2015
Labels Added: ?
avatar wilsonge
wilsonge - comment - 6 Feb 2015

This seems wrong? You're checking there is a valid contact id to delete. We have exactly the same check in all components (e.g. the one in com_content here https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/article.php#L159)

avatar joomdonation
joomdonation - comment - 7 Feb 2015

The fix typo is wrong as George mentioned. However, the "move one JFactory::getUser(); call" is good and should be updated (how about calling return JFactory::getUser()->authorise('core.edit.state', 'com_contact.category.' . (int) $record->catid); directly ? )

avatar zero-24
zero-24 - comment - 7 Feb 2015

hmm ok so i revert here and leave the moving of JFactory::getUser(); call. So this is a simple CS PR :smile:

avatar zero-24 zero-24 - change - 7 Feb 2015
Category Code style
avatar zero-24 zero-24 - change - 7 Feb 2015
The description was changed
Title
Fix a typo at the ContactModelContact
Move one `JFactory::getUser();` call.
Easy No Yes
avatar zero-24 zero-24 - change - 7 Feb 2015
Title
Fix a typo at the ContactModelContact
Move one `JFactory::getUser();` call.
avatar wilsonge wilsonge - change - 7 Feb 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-02-07 16:03:52
avatar wilsonge wilsonge - close - 7 Feb 2015
avatar wilsonge wilsonge - reference | - 7 Feb 15
avatar wilsonge wilsonge - merge - 7 Feb 2015
avatar wilsonge wilsonge - close - 7 Feb 2015
avatar wilsonge wilsonge - change - 7 Feb 2015
Milestone Added:
avatar wilsonge
wilsonge - comment - 7 Feb 2015

Merged on review

avatar zero-24 zero-24 - head_ref_deleted - 7 Feb 2015

Add a Comment

Login with GitHub to post a comment