? Success
Pull Request for # 9405

User tests: Successful: Unsuccessful:

avatar alikon
alikon
17 Mar 2016

Pull Request for Issue follow of #9405 .

Summary of Changes

a better check

Testing Instructions

please carefully test the user profile plugin about tos mainily

frontend register , edit etc
backend new , edit , etc

Comment

any feedback is warmly wellcomed

avatar alikon alikon - open - 17 Mar 2016
avatar alikon alikon - change - 17 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2016
Labels Added: ?
a85ccc5 17 Mar 2016 avatar alikon oops
avatar brianteeman brianteeman - change - 17 Mar 2016
Category Plugins
avatar brianteeman brianteeman - change - 17 Mar 2016
Rel_Number 0 9405
Relation Type Pull Request for
avatar zero-24
zero-24 - comment - 17 Mar 2016

@wilsonge @brianteeman can you add the release blocker label? If i get some time tomorrow or on saturday i can try to test this.

Thanks @alikon for the patch :+1:

avatar brianteeman brianteeman - change - 17 Mar 2016
Labels Added: ?
avatar alikon
alikon - comment - 17 Mar 2016

noooo :sob:
2nd yellow card on same #pr i will miss next match

avatar zero-24
zero-24 - comment - 17 Mar 2016

Hehe :) good that we are not at soccer here :)

avatar Twincarb Twincarb - test_item - 17 Mar 2016 - Tested successfully
avatar Twincarb
Twincarb - comment - 17 Mar 2016

I have tested this item :white_check_mark: successfully on a85ccc5

TOS works as expected in the front end and no issues found when modifying as user or admin.


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

avatar joomdonation
joomdonation - comment - 17 Mar 2016

@alikon red card for you :D, and you will miss next match. With this change, even you select No in terms of services, the registration will still be processed.

avatar joomla-cms-bot
joomla-cms-bot - comment - 18 Mar 2016

This PR has received new commits.

CC: @Twincarb


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

avatar alikon
alikon - comment - 18 Mar 2016

@joomdonation hoping to not miss more than 1 match ;)

avatar joomdonation
joomdonation - comment - 18 Mar 2016

@alikon It looks OK now. However, I think you have too many ( and ) in the code (which is not needed). I think you can change the code to to make it easier to read:

$task       = JFactory::getApplication()->input->getCmd('task');
$option     = JFactory::getApplication()->input->getCmd('option');
$tosarticle = $this->params->get('register_tos_article');
$tosenabled = $this->params->get('register-require_tos', 0);
if ($option == 'com_users' && $task == 'register' && $tosarticle && $tosenabled == 2 && !$data['profile']['tos'])
{   
        throw new InvalidArgumentException(JText::_('PLG_USER_PROFILE_FIELD_TOS_DESC_SITE'));
}
avatar zero-24
zero-24 - comment - 18 Mar 2016

@alikon is this ready for testing? or do you want to add the fixes by @joomdonation

avatar alikon
alikon - comment - 18 Mar 2016

Is ready for test IMHO , is readable for me but this my personal feeling

avatar joomdonation
joomdonation - comment - 18 Mar 2016

My personal feeling, too. If maintainer decides that the changes is not needed, then count me as one successful test.

avatar wilsonge wilsonge - change - 18 Mar 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-03-18 14:33:01
Closed_By wilsonge
avatar wilsonge wilsonge - close - 18 Mar 2016
avatar wilsonge wilsonge - merge - 18 Mar 2016
avatar wilsonge wilsonge - close - 18 Mar 2016
avatar wilsonge wilsonge - change - 18 Mar 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment