?
avatar amithadkar
amithadkar
17 Oct 2014

Steps to reproduce the issue

Go to any module and create new record.
Keep the mandatory fields blank and click on save button.

Expected result

Validation message should display like "Invalid data in field: field name".

Actual result

Displays validation message like "Invalid field: Field name".

System information (as much as possible)

PHP Built On Windows NT 6.2 build 9200
Database Version 5.6.12-log
Database Collation utf8_general_ci
PHP Version 5.4.12
Web Server Apache/2.4.4 (Win64) PHP/5.4.12
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.3.7-dev Development [ Ember ] 01-October-2014 02:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0

Additional comments

Field is not invalid but the data which are in/not in the field is invalid.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
2.00

avatar amithadkar amithadkar - open - 17 Oct 2014
avatar RCheesley
RCheesley - comment - 17 Oct 2014

If you say the data entered is invalid this does not make sense if nothing was actually submitted in the first place.

It would be perhaps better to have a check to see if it's empty or invalid, and then report 'no data was received for mandatory field ' (then a comma separated list if there are more than one) or 'data in field is invalid' if it is invalid.

It's maybe being a bit pedantic though, because technically entering nothing into a field which requires an entry is actually invalid data, in the same way as entering something in an unexpected format.

I wonder what the implications are for multilingual - does this make any difference in other languages?



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

avatar brianteeman
brianteeman - comment - 17 Oct 2014

@rcheesley
If you say for example

Invalid Field: Address

Then is that clearer and does that cover all situations that you described


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

avatar brianteeman
brianteeman - comment - 17 Oct 2014

Sorry what I meant to say that I believe Invalid Field: Address which is what is displayed does correctly convey the meaning of the message in both the scenarios you describe Ruth.

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

avatar nicksavov nicksavov - change - 17 Oct 2014
Labels Added: ?
avatar infograf768
infograf768 - comment - 18 Oct 2014

I think it's OK as is.
No incidence at all on other languages than en-GB
example in French:
Champ invalide : Titre

avatar infograf768 infograf768 - close - 18 Oct 2014
avatar zero-24 zero-24 - close - 18 Oct 2014
avatar infograf768 infograf768 - change - 18 Oct 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-10-18 09:55:46
avatar brianteeman
brianteeman - comment - 18 Oct 2014

Well you have no idea what it is in other languages unless you speak all of them ;)

And as for en-GB I've already stated that it is fine

avatar infograf768
infograf768 - comment - 18 Oct 2014

No incidence obviously if the strings are correctly translated...

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment