projects
/
timetracker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d19e5
)
Improved project delete by also deleting client binds.
author
Nik Okuntseff
<support@anuko.com>
Tue, 4 Dec 2018 13:41:13 +0000
(13:41 +0000)
committer
Nik Okuntseff
<support@anuko.com>
Tue, 4 Dec 2018 13:41:13 +0000
(13:41 +0000)
WEB-INF/lib/ttProjectHelper.class.php
patch
|
blob
|
history
diff --git
a/WEB-INF/lib/ttProjectHelper.class.php
b/WEB-INF/lib/ttProjectHelper.class.php
index
98d928f
..
b5fb74d
100644
(file)
--- a/
WEB-INF/lib/ttProjectHelper.class.php
+++ b/
WEB-INF/lib/ttProjectHelper.class.php
@@
-183,6
+183,12
@@
class ttProjectHelper {
if (is_a($affected, 'PEAR_Error'))
return false;
+ // Delete client binds to this project.
+ $sql = "delete from tt_client_project_binds where project_id = $id and group_id = $group_id and org_id = $org_id";
+ $affected = $mdb2->exec($sql);
+ if (is_a($affected, 'PEAR_Error'))
+ return false;
+
return true;
}