? Success

User tests: Successful: Unsuccessful:

avatar Devportobello
Devportobello
5 Feb 2015

The rule equals doesnt take into account group fields so we cant validate this rule.

To reproduce the issue

Setup JForm XML form with a group + use field to validate equals:
ex:

<?xml version="1.0" encoding="utf-8"?>
<form>
  <fields name="example">
   <field name="name" type="text" ... />
    <field name="password" type="password"
      autocomplete="off"
      class="validate-password"
      description="DESIRED_PASSWORD"
      field="password"
      filter="raw"
      label="PASSWORD_LABEL"
      size="10"
      validate="password"
      required="true"
    />
    <field name="password2" type="password"
      autocomplete="off"
      class="validate-password"
      description="PASSWORD2_DESC"
      field="password"
      filter="raw"
      label="PASSWORD2_LABEL"
      message="PASSWORD1_MESSAGE"
      size="30"
      validate="equals"
      required="true"
    />
 </fields>
</form>

OR use this custom component: https://github.com/Devportobello/joomla-attach-PR-5979

Expected result

Comparing password fields when password == password2 return true

Actual result

Comparing password fields dont return true if password == password2

System information

Joomla : Joomla! 3.4.1 Stable [ Ember ] 21-March-2015 20:30 GMT
PHP : 5.5.12
Apache : 2.4.9

Additional comments

Group are not taked into account when comparing value of those fields

Test instructions

  • Download ZIP of com_test at https://github.com/Devportobello/joomla-attach-PR-5979
  • Install it.
  • Have a look into components/com_test/models/fields/test.xml if you want to.
  • Go to frontend home. Add /?option=com_test to URL.
  • Type "test" on all password field
  • Submit form, you will see an error message about password2 not equals
  • Apply patch
  • Type "test" on all password field
  • Submit form, you will see string 'OK' (length=2) (used to exit code before save)
avatar Devportobello Devportobello - open - 5 Feb 2015
avatar jissues-bot jissues-bot - change - 5 Feb 2015
Labels Added: ?
avatar jissues-bot jissues-bot - change - 5 Feb 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 5 Feb 2015
Category Libraries
avatar Devportobello Devportobello - change - 1 Apr 2015
The description was changed
avatar Devportobello Devportobello - change - 1 Apr 2015
The description was changed
avatar Devportobello
Devportobello - comment - 1 Apr 2015

Added a custom component "See description #5979 (comment)" to help test.

avatar Preview
Preview - comment - 30 May 2015

@test I followed the test instructions mentioned above and the patch worked.


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

avatar Preview Preview - test_item - 30 May 2015 - Tested successfully
avatar erikvandoorne erikvandoorne - test_item - 15 Apr 2016 - Tested successfully
avatar erikvandoorne
erikvandoorne - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully on a4f0cf1

I tested this according to the test instructions and tested the patch to be OK.


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

avatar insitevision insitevision - test_item - 15 Apr 2016 - Tested successfully
avatar insitevision
insitevision - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully on a4f0cf1

Succesfully tested the patch according to the test instructions


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

avatar beneberle
beneberle - comment - 24 Jun 2016

I just ran into this issue and confirmed the proposed patch solved my problem. Can we get it merged?

avatar mbabker mbabker - change - 24 Jun 2016
Status Pending Ready to Commit
avatar mbabker
mbabker - comment - 24 Jun 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 24 Jun 2016
Labels Added: ?
avatar Devportobello
Devportobello - comment - 28 Jun 2016

Any milestone for this ? :)

avatar roland-d roland-d - change - 28 Jun 2016
Milestone Added:
avatar roland-d roland-d - close - 16 Jul 2016
avatar zero-24
zero-24 - comment - 16 Jul 2016

@joomla-cms-bot please help me here ?

avatar joomla-cms-bot joomla-cms-bot - reopen - 16 Jul 2016
avatar zero-24 zero-24 - change - 16 Jul 2016
Status Closed Fixed in Code Base
avatar joomla-cms-bot joomla-cms-bot - close - 16 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - reopen - 16 Jul 2016
avatar zero-24
zero-24 - comment - 16 Jul 2016

Can please someone with merge rights close this issue and remove the RTC label? It looks like the bot don't want to help me with this issue

avatar roland-d roland-d - close - 16 Jul 2016
avatar roland-d roland-d - change - 16 Jul 2016
Status New Closed
Closed_Date 2016-07-16 05:05:43 2016-07-16 12:14:23
Closed_By roland-d
Labels
avatar joomla-cms-bot joomla-cms-bot - reopen - 16 Jul 2016
avatar roland-d roland-d - close - 16 Jul 2016
avatar zero-24
zero-24 - comment - 16 Jul 2016

Thanks.

Add a Comment

Login with GitHub to post a comment