mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
allow all valid timezones in server-side validation, to allow existing values and in future select arbitrary timezones via an ajax callback
This commit is contained in:
parent
1971186597
commit
0285dd94f8
@ -162,6 +162,13 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
}
|
||||
break;
|
||||
|
||||
case 'select-timezone':
|
||||
if (!calendar_timezones::tz2id($val))
|
||||
{
|
||||
self::set_validation_error($form_name, lang("'%1' is NOT a valid timezone!", $val));
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if(!in_array($val, $allowed))
|
||||
{
|
||||
|
@ -19,6 +19,7 @@
|
||||
'%1' is not a valid date !!! etemplate de '%1' ist ein ungültiges Datum !!!
|
||||
'%1' is not a valid floatingpoint number !!! etemplate de '%1' ist keine gültige Gleitkommazahl !!!
|
||||
'%1' is not a valid integer !!! etemplate de '%1' ist keine gültige Ganzzahl !!!
|
||||
'%1' is not a valid timezone! etemplate de '%1' ist keine gültige Zeitzone!
|
||||
'%1' is not allowed ('%2')! etemplate de '%1' ist NICHT erlaubt ('%2')!
|
||||
'%1' is not allowed%2)! etemplate de '%1' ist NICHT erlaubt '%2'!
|
||||
1 minute etemplate de 1 Minute
|
||||
|
@ -20,6 +20,7 @@
|
||||
'%1' is not a valid date !!! etemplate en '%1' is not a valid date!
|
||||
'%1' is not a valid floatingpoint number !!! etemplate en '%1' is not a valid floating point number!
|
||||
'%1' is not a valid integer !!! etemplate en '%1' is not a valid integer!
|
||||
'%1' is not a valid timezone! etemplate en '%1' is not a valid timezone!
|
||||
'%1' is not allowed ('%2')! etemplate en '%1' is NOT allowed ('%2')!
|
||||
'%1' is not allowed%2)! etemplate en '%1' is NOT allowed%2)!
|
||||
1 minute etemplate en 1 Minute
|
||||
|
Loading…
Reference in New Issue
Block a user