From: Nik Okuntseff Date: Fri, 23 Nov 2018 19:14:59 +0000 (+0000) Subject: Made group name mandatory for subgroup support. X-Git-Tag: timetracker_1.19-1~562 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d27960ac5530c7c81b9adba85253b0e216f81476;p=timetracker.git Made group name mandatory for subgroup support. --- diff --git a/WEB-INF/lib/ttAdmin.class.php b/WEB-INF/lib/ttAdmin.class.php index a2388edf..747274f1 100644 --- a/WEB-INF/lib/ttAdmin.class.php +++ b/WEB-INF/lib/ttAdmin.class.php @@ -198,7 +198,7 @@ class ttAdmin { $result = true; - if (!ttValidString($fields['group_name'], true)) { + if (!ttValidString($fields['new_group_name'])) { $this->err->add($i18n->get('error.field'), $i18n->get('label.group_name')); $result = false; } diff --git a/WEB-INF/lib/ttRegistrator.class.php b/WEB-INF/lib/ttRegistrator.class.php index 8e755837..77ffb6b5 100644 --- a/WEB-INF/lib/ttRegistrator.class.php +++ b/WEB-INF/lib/ttRegistrator.class.php @@ -67,7 +67,7 @@ class ttRegistrator { function validate() { global $i18n; - if (!ttValidString($this->group_name, true)) + if (!ttValidString($this->group_name)) $this->err->add($i18n->get('error.field'), $i18n->get('label.group_name')); if (!ttValidString($this->currency, true)) $this->err->add($i18n->get('error.field'), $i18n->get('label.currency')); diff --git a/WEB-INF/templates/admin_group_add.tpl b/WEB-INF/templates/admin_group_add.tpl index fd671e9c..029b5254 100644 --- a/WEB-INF/templates/admin_group_add.tpl +++ b/WEB-INF/templates/admin_group_add.tpl @@ -4,7 +4,7 @@ - + diff --git a/WEB-INF/templates/admin_group_edit.tpl b/WEB-INF/templates/admin_group_edit.tpl index 4c52580e..70443e32 100644 --- a/WEB-INF/templates/admin_group_edit.tpl +++ b/WEB-INF/templates/admin_group_edit.tpl @@ -4,7 +4,7 @@
{$i18n.label.group_name}:{$i18n.label.group_name} (*): {$forms.groupForm.group_name.control}
- + diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 161df020..ec0063a3 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
{$i18n.label.group_name}:{$i18n.label.group_name} (*): {$forms.groupForm.group_name.control}
 
-
 Anuko Time Tracker 1.18.27.4503 | Copyright © Anuko | +  Anuko Time Tracker 1.18.27.4504 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/group_edit.tpl b/WEB-INF/templates/group_edit.tpl index d1594489..8ccb258f 100644 --- a/WEB-INF/templates/group_edit.tpl +++ b/WEB-INF/templates/group_edit.tpl @@ -28,7 +28,7 @@ function handleTaskRequiredCheckbox() { {if $user->can('manage_basic_settings')} - + @@ -109,6 +109,10 @@ function handleTaskRequiredCheckbox() { + + + + {/if} {* initialize preview text *}
{$i18n.label.group_name}:{$i18n.label.group_name} (*): {$forms.groupForm.group_name.control}
{$i18n.form.group_edit.allow_ip}: {$forms.groupForm.allow_ip.control} {$i18n.label.what_is_it}
{$i18n.label.required_fields}