? Success

User tests: Successful: Unsuccessful:

avatar Devportobello
Devportobello
6 Jul 2016

Context

When using the form password rule out of the com_users component, eg in a third component, we are facing an untranslated language string:

COM_USERS_MSG_NOT_ENOUGH_INTEGERS_N
COM_USERS_MSG_NOT_ENOUGH_SYMBOLS_N
COM_USERS_MSG_NOT_ENOUGH_UPPERCASE_LETTERS_N
COM_USERS_MSG_PASSWORD_TOO_SHORT_N

Summary of Changes

Load the com_users language file in the rule for translation

Testing Instructions

Edit files:

  • pathToJoomla\components\com_content\models\forms\article.xml add before the field id [line 4]
<field
    name="test"
    type="password"
    validate="password"
    label="Test" />
  • pathToJoomla\components\com_content\views\form\tmpl\edit.php add before the render title field [line 83]
<?php echo $this->form->renderField('test'); ?>

Then in backend edit the com_users settings:
Password Minimum Length : 2
Password Minimum Integers : 1
Password Minimum Symbols : 1
Password Minimum Upper Case : 1

Login frontend as super user
Go to: yourDomain/index.php?option=com_content&view=form&layout=edit

Type in "Title" field something and type in Test field: aa
Save to hit the issue

COM_USERS_MSG_NOT_ENOUGH_INTEGERS_N
COM_USERS_MSG_NOT_ENOUGH_SYMBOLS_N
COM_USERS_MSG_NOT_ENOUGH_UPPERCASE_LETTERS_N
COM_USERS_MSG_PASSWORD_TOO_SHORT_N
Invalid field: Test

Apply fix, retry and no more untranslated string

avatar Devportobello Devportobello - open - 6 Jul 2016
avatar Devportobello Devportobello - change - 6 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jul 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 6 Jul 2016
Category Libraries
avatar zero-24 zero-24 - test_item - 6 Jul 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 6 Jul 2016

I have tested this item successfully on 371fe64

makes sense. Thanks


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

avatar conconnl conconnl - test_item - 7 Jul 2016 - Tested successfully
avatar conconnl
conconnl - comment - 7 Jul 2016

I have tested this item successfully on 371fe64


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

avatar brianteeman brianteeman - change - 7 Jul 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 7 Jul 2016

Rtc


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

avatar brianteeman brianteeman - change - 8 Jul 2016
Milestone Added:
avatar brianteeman
brianteeman - comment - 8 Jul 2016

Come on bot


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

avatar brianteeman brianteeman - change - 8 Jul 2016
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jul 2016
Milestone Removed:
avatar Devportobello
Devportobello - comment - 8 Jul 2016

Maybe he dislike the lower case !

avatar roland-d roland-d - reference | 51e1af0 - 16 Jul 16
avatar roland-d roland-d - merge - 16 Jul 2016
avatar roland-d roland-d - close - 16 Jul 2016
avatar Devportobello Devportobello - head_ref_deleted - 18 Jul 2016
avatar zero-24
zero-24 - comment - 21 Jul 2016

@joomla-cms-bot you have missid this one ore oversleep?

Add a Comment

Login with GitHub to post a comment