CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #35307

Selectboxes client validation empty values non mandatory

Added by Jörg Leshel about 1 year ago. Updated about 1 year ago.

Status:Rejected Start date:2012-03-28
Priority:Should have Due date:
Assignee:Alex Kellner % Done:

0%

Category:-
Target version:2.0.0
Votes: 2 (View)

Description

Hi,

Clientvalidation of select inputs is a bit buggy (v 1.6.4), It's rendering an empty tooltips on blur for non mandatory selectfields. maybe its just because i have two selects in a row, one is mandatory, the other isn't. don't have time to have a further look into it.

quickfix in templates/tmpl_frontend.js starting from line 134

// select validation
$.tools.validator.fn('select', '',
function(el, value) {
if (el.attr('multiple')) {
return value != null ? true: '###VALIDATOR_LABEL_ONE_REQUIRED###';
} else {
if(el.attr('required') == 'required'){
return value.length > 0 ? true : '';
}
else{
return true;
}
}
}
);

History

Updated by Tobias H. about 1 year ago

I can confirm this bug.

Updated by Alex Kellner about 1 year ago

  • Status changed from New to Rejected
  • Assignee set to Alex Kellner
  • Target version set to 2.0.0

I will close this issue, because it's related to powermail 1.x.
We will release powermail 2.0 in a few days and don't want to spend time in old versions.

Also available in: Atom PDF