Fixed group_edit.php for no subgroups situation.
authorNik Okuntseff <support@anuko.com>
Fri, 7 Dec 2018 14:37:28 +0000 (14:37 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 7 Dec 2018 14:37:28 +0000 (14:37 +0000)
WEB-INF/templates/footer.tpl
group_edit.php

index db006ef..696890b 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.29.4605 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.29.4606 | Copyright &copy; <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>
index 29bfd80..b16a15f 100644 (file)
@@ -40,7 +40,7 @@ import('ttConfigHelper');
 if ($request->isGet()) {
   $group_id = $request->getParameter('id') ? $request->getParameter('id') : $user->getGroup();
 } else {
-  $group_id = $request->getParameter('group');
+  $group_id = $request->getParameter('group') ? $request->getParameter('group') : $user->getGroup();
 }
 $home_group = $user->group_id == $group_id;
 if ($home_group) {