$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;
}
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'));
<td>
<table cellspacing="1" cellpadding="2" border="0">
<tr>
- <td align="right" nowrap>{$i18n.label.group_name}:</td>
+ <td align="right" nowrap>{$i18n.label.group_name} (*):</td>
<td>{$forms.groupForm.group_name.control}</td>
</tr>
<tr>
<td>
<table cellspacing="1" cellpadding="2" border="0">
<tr>
- <td align="right" nowrap>{$i18n.label.group_name}:</td>
+ <td align="right" nowrap>{$i18n.label.group_name} (*):</td>
<td>{$forms.groupForm.group_name.control}</td>
</tr>
<tr><td> </td></tr>
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.27.4503 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.27.4504 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
<table cellspacing="1" cellpadding="2" border="0">
{if $user->can('manage_basic_settings')}
<tr>
- <td align="right" nowrap>{$i18n.label.group_name}:</td>
+ <td align="right" nowrap>{$i18n.label.group_name} (*):</td>
<td>{$forms.groupForm.group_name.control}</td>
</tr>
<tr>
<td align="right" nowrap>{$i18n.form.group_edit.allow_ip}:</td>
<td>{$forms.groupForm.allow_ip.control} <a href="https://www.anuko.com/lp/tt_21.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
</tr>
+ <tr>
+ <td></td>
+ <td>{$i18n.label.required_fields}</td>
+ </tr>
{/if}
{* initialize preview text *}
<script>
<td>
<table cellspacing="1" cellpadding="2" border="0">
<tr>
- <td align="right" nowrap>{$i18n.label.group_name}:</td>
+ <td align="right" nowrap>{$i18n.label.group_name} (*):</td>
<td>{$forms.groupForm.group_name.control}</td>
</tr>
<tr>
}
// Validate user input.
- if (!ttValidString($cl_group, true)) $err->add($i18n->get('error.field'), $i18n->get('label.group_name'));
+ if (!ttValidString($cl_group)) $err->add($i18n->get('error.field'), $i18n->get('label.group_name'));
if (!ttValidString($cl_description, true)) $err->add($i18n->get('error.field'), $i18n->get('label.description'));
if (!ttValidString($cl_currency, true)) $err->add($i18n->get('error.field'), $i18n->get('label.currency'));
if ($advanced_settings) {