? ? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
28 Dec 2015

To test:
Select the user you are currently logged in with only and batch reset their password (with a value of yes or no).

Before the patch you'll get a mysql warning. After the patch you'll get a notice that no users have been selected.

This is because you cannot reset the password of the currently logged in user so suddenly you are trying to batch reset no users.

avatar wilsonge wilsonge - open - 28 Dec 2015
avatar wilsonge wilsonge - change - 28 Dec 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Dec 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 29 Dec 2015

This does not work here.
If I choose another user than the one logged in and set Batch Require Password Reset to "No" or "Yes", I get the same message.

Batch process failed with following error: No Users selected.

avatar infograf768
infograf768 - comment - 29 Dec 2015

It works though if you change to

if (empty($user_ids))
        {
            $this->setError(JText::_('COM_USERS_USERS_NO_ITEM_SELECTED'));

            return false;
        }

No more mysql error, even when selecting multiple users including yourself. In that last case the "Require Password Reset" param is applied to the other users only.

Maybe we would need a new string btw;
Something like:
COM_USERS_USERS_ERROR_CANNOT_REQUIRERESET_SELF="You can't require a Password reset for yourself."

avatar wilsonge
wilsonge - comment - 29 Dec 2015

This is what comes of copy/pasting the wrong snippet of code from my local server. Thanks JM! Fixed now!

avatar infograf768
infograf768 - comment - 29 Dec 2015

What about the new language string? The one in the PR does not make much sense in this context as a user has been selected.

avatar brianteeman
brianteeman - comment - 11 Feb 2016

Agree with @infograf768 this needs a different language string
@wilsonge can you do that please


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

avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2016
Labels Added: ?
avatar wilsonge
wilsonge - comment - 11 Feb 2016

Done and rebased onto staging at the same time

avatar brianteeman brianteeman - test_item - 11 Feb 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 11 Feb 2016

I have tested this item :white_check_mark: successfully on 3ca055a


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

avatar bertmert bertmert - test_item - 11 Feb 2016 - Tested successfully
avatar bertmert
bertmert - comment - 11 Feb 2016

I have tested this item :white_check_mark: successfully on 3ca055a


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

avatar brianteeman brianteeman - change - 11 Feb 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 11 Feb 2016

RTC - thanks


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

avatar brianteeman
brianteeman - comment - 11 Feb 2016

RTC - thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2016
Labels Added: ?
avatar roland-d roland-d - change - 16 Feb 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-02-16 10:05:46
Closed_By roland-d
avatar brianteeman brianteeman - change - 11 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment