? ? Pending

User tests: Successful: Unsuccessful:

avatar degobbis
degobbis
18 Jul 2019

Summary of Changes

Output field label on messages/warnings if exist

Testing Instructions

  1. Create a custom field from the type media and disable the permission to edit custom field value for the group Manager.
  2. Edit in backend the article with this custom field as a super user and as an example select an image.
  3. Login in frontend with the user in the group Manager and edit the article with this custom field and safe it without any changes.

This will show a warning wich is a bug that I will hopfully fix with an other PR
update here is the fix #25682

Expected result

The warning shown prints the field label to define the errorfield

Actual result

The warning shown prints the field name to define the errorfield, which may be named differently from the label and therefore may not be findable

avatar degobbis degobbis - open - 18 Jul 2019
avatar degobbis degobbis - change - 18 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jul 2019
Category Libraries
avatar degobbis degobbis - change - 18 Jul 2019
The description was changed
avatar degobbis degobbis - edited - 18 Jul 2019
avatar gogicomputers
gogicomputers - comment - 19 Jul 2019

I have tested this item successfully on 7f96f48

Code Works


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

avatar gogicomputers gogicomputers - test_item - 19 Jul 2019 - Tested successfully
avatar degobbis degobbis - change - 20 Jul 2019
The description was changed
avatar degobbis degobbis - edited - 20 Jul 2019
avatar degobbis degobbis - change - 22 Jul 2019
The description was changed
avatar degobbis degobbis - edited - 22 Jul 2019
avatar viocassel
viocassel - comment - 22 Jul 2019

I have tested this item successfully on 7f96f48


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

avatar viocassel viocassel - test_item - 22 Jul 2019 - Tested successfully
avatar Quy Quy - change - 22 Jul 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 22 Jul 2019

RTC


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

avatar HLeithner
HLeithner - comment - 22 Jul 2019

$fieldName is a misleading name for the variable could you please change it to $fieldLabel or $messageLabel.

thx

avatar degobbis degobbis - change - 23 Jul 2019
Labels Added: ?
avatar degobbis degobbis - change - 23 Jul 2019
Labels Added: ?
avatar degobbis
degobbis - comment - 23 Jul 2019

@HLeithner changed the name from the variable to $fieldLabel

avatar HLeithner HLeithner - close - 23 Jul 2019
avatar HLeithner HLeithner - merge - 23 Jul 2019
avatar HLeithner
HLeithner - comment - 23 Jul 2019

thx

avatar HLeithner HLeithner - change - 23 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-23 08:13:00
Closed_By HLeithner

Add a Comment

Login with GitHub to post a comment