From: Nik Okuntseff Date: Sun, 18 Nov 2018 17:54:44 +0000 (+0000) Subject: Populating group_id and org_id in tt_project_task_binds table. X-Git-Tag: timetracker_1.19-1~623 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=61866da737a6cc06ae2c1e4ba766a0c46ab4fb8a;p=timetracker.git Populating group_id and org_id in tt_project_task_binds table. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 22d4c5e1..7eb70484 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.17.4448 | Copyright © Anuko | +  Anuko Time Tracker 1.18.17.4449 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index eec02368..ef895bdd 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1007,6 +1007,7 @@ if ($_POST) { setChange("UPDATE `tt_site_config` SET param_value = '1.18.17', modified = now() where param_name = 'version_db' and param_value = '1.18.16'"); setChange("UPDATE `tt_expense_items` inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.17') set org_id = group_id where org_id is null"); setChange("update `tt_user_project_binds` upb inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.17') inner join `tt_users` u on u.id = upb.user_id set upb.group_id = u.group_id, upb.org_id = u.org_id where upb.org_id is null"); + setChange("update `tt_project_task_binds` ptb inner join tt_site_config sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.17') inner join `tt_projects` p on p.id = ptb.project_id set ptb.group_id = p.group_id, ptb.org_id = p.org_id where ptb.org_id is null"); } if ($_POST["cleanup"]) {