? Success
Pull Request for # 8667

User tests: Successful: Unsuccessful:

avatar dgt41
dgt41
31 Jan 2016

This fixes #8667

Field is hardcoded as disabled and the required option is absent

Also contains some code style fixes for the fields: user, media, contenthistory (the var block comments are unified)

Testing

Create a new User Note
do not select user
Form should not be valid and not therefore not been submitted (but it is)

Apply patch and re do the process

avatar dgt41 dgt41 - open - 31 Jan 2016
avatar dgt41 dgt41 - change - 31 Jan 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2016
Labels Added: ?
avatar brianteeman brianteeman - test_item - 31 Jan 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 31 Jan 2016

I have tested this item :red_circle: unsuccessfully on a8b0f3f

Didnt work

Applied patch
Selected Add New User Note
Clicked Save
User Note was saved


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar brianteeman brianteeman - test_item - 31 Jan 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 31 Jan 2016

I have tested this item :red_circle: unsuccessfully on 95de262

Almost works - cant be saved but no error displayed - just an empty error div


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar brianteeman brianteeman - test_item - 31 Jan 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 31 Jan 2016

I have tested this item :white_check_mark: successfully on 99a3ae1


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

avatar infograf768
infograf768 - comment - 31 Jan 2016

Works now here too.

Can you explain further (maybe with comments):

+if (JText::_('JLIB_FORM_SELECT_USER') == htmlspecialchars($userName, ENT_COMPAT, 'UTF-8'))
+{
+   $userName = "";
+}
+
avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar dgt41
dgt41 - comment - 31 Jan 2016

@infograf768 is a simple check to invalidate the value of the input. If $userName is "Select User" then we set the value to null, so validation will fail and we will get a message. This only happens in the first time the field is rendered, and a user is not already selected.

avatar brianteeman brianteeman - change - 31 Jan 2016
Title
Regression User field is not validating
Regression User field is not validating
avatar brianteeman brianteeman - change - 31 Jan 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 31 Jan 2016

Setting RTC - we have two good tests - thanks @dgt41


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

avatar joomla-cms-bot joomla-cms-bot - change - 31 Jan 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 31 Jan 2016
Rel_Number 0 8667
Relation Type Pull Request for
Labels
avatar dgt41 dgt41 - change - 31 Jan 2016
Labels
avatar joomla-cms-bot
joomla-cms-bot - comment - 31 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar dgt41
dgt41 - comment - 31 Jan 2016

For completeness:
If the field is set as required then a user should not be able to unset it. In other words the button no user in the modal should appear only if the field can have no value!

avatar brianteeman brianteeman - change - 31 Jan 2016
Labels
avatar brianteeman brianteeman - change - 31 Jan 2016
Category Components
avatar infograf768 infograf768 - test_item - 1 Feb 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 1 Feb 2016

I have tested this item :white_check_mark: successfully on 122923c


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

avatar infograf768
infograf768 - comment - 1 Feb 2016

This should go into 3.5.0

avatar richard67 richard67 - test_item - 1 Feb 2016 - Tested successfully
avatar richard67
richard67 - comment - 1 Feb 2016

I have tested this item :white_check_mark: successfully on 122923c

Tested with success as described on current staging + this patch.


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

avatar Kubik-Rubik Kubik-Rubik - change - 2 Feb 2016
Milestone Added:
avatar Kubik-Rubik Kubik-Rubik - reference | 5a188a8 - 2 Feb 16
avatar Kubik-Rubik Kubik-Rubik - change - 2 Feb 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-02-02 08:36:17
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 2 Feb 2016
avatar joomla-cms-bot joomla-cms-bot - close - 2 Feb 2016
avatar Kubik-Rubik Kubik-Rubik - merge - 2 Feb 2016
avatar Kubik-Rubik Kubik-Rubik - close - 2 Feb 2016
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2016
Labels Removed: ?
avatar Kubik-Rubik
Kubik-Rubik - comment - 2 Feb 2016

@dgt41 Thank you!

@roland-d Sorry, did not see your note. @dgt41 Could you make the change in a new PR? Thanks!

avatar joomdonation
joomdonation - comment - 2 Feb 2016

Maybe we can just leave it as how it is:

  1. Uppercase filter string is used in other places in Joomla core, for example https://github.com/joomla/joomla-cms/blob/staging/components/com_users/controllers/user.php#L38-L42

  2. The docblock of JFilterInput clean methods seems suggest that we use uppper case https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/filter/input.php#L206-L220

avatar dgt41
dgt41 - comment - 2 Feb 2016
avatar dgt41 dgt41 - head_ref_deleted - 2 Feb 2016
avatar Kubik-Rubik Kubik-Rubik - reference | 520ff37 - 2 Feb 16

Add a Comment

Login with GitHub to post a comment