From 175d4fdbba83e4d62db48a19f4c691c173469a13 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sun, 11 Mar 2018 16:48:49 +0000 Subject: [PATCH] Fixed user edit for editing managers. --- WEB-INF/templates/footer.tpl | 2 +- user_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 3abf2bcc..775c1214 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.37.4051 | Copyright © Anuko | +  Anuko Time Tracker 1.17.37.4052 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/user_edit.php b/user_edit.php index ec3341c2..a811c00b 100644 --- a/user_edit.php +++ b/user_edit.php @@ -196,7 +196,7 @@ if ($request->isPost()) { 'status' => $cl_status, 'rate' => $cl_rate, 'projects' => $assigned_projects); - if (right_assign_roles & $user->rights) { + if (right_assign_roles & $user->rights && $cl_role) { // Get legacy role value. $legacy_role = ttRoleHelper::getLegacyRole($cl_role); // TODO: remove after roles revamp. $fields['role'] = $legacy_role; -- 2.20.1