? Success

User tests: Successful: Unsuccessful:

avatar genu
genu
8 Jul 2014

Function should return the $result of the access level check

avatar genu genu - open - 8 Jul 2014
avatar Bakual
Bakual - comment - 8 Jul 2014

I think it would make sense to change the return value for the edit method as well.
Currently it returns always true, but it should atually return $result as well.

avatar genu
genu - comment - 9 Jul 2014

Not sure if the save() should have a return value... :/. Could it just return true since it seem to have many other validation checks that return false?

avatar Bakual
Bakual - comment - 9 Jul 2014

I agree the save one should return true at the end of the method (after the switch statement). At this stage, the save was successful already.

avatar bcordis
bcordis - comment - 9 Jul 2014

Make sure to create a tracker item and add link here.

avatar Bakual Bakual - change - 9 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-09 18:56:43
avatar Bakual Bakual - close - 9 Jul 2014
avatar Bakual Bakual - close - 9 Jul 2014
avatar Bakual
Bakual - comment - 9 Jul 2014

Merged from code review. Thanks.

avatar genu genu - head_ref_deleted - 10 Jul 2014

Add a Comment

Login with GitHub to post a comment