projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Populating org_id in tt_cron table.
[timetracker.git]
/
WEB-INF
/
lib
/
ttOrgHelper.class.php
diff --git
a/WEB-INF/lib/ttOrgHelper.class.php
b/WEB-INF/lib/ttOrgHelper.class.php
index
3692123
..
c69fc7a
100644
(file)
--- a/
WEB-INF/lib/ttOrgHelper.class.php
+++ b/
WEB-INF/lib/ttOrgHelper.class.php
@@
-90,6
+90,11
@@
class ttOrgHelper {
// However, at this time not all tables have org_id.
// So, we need to add the field as we write code here.
// However, at this time not all tables have org_id.
// So, we need to add the field as we write code here.
+ // Delete expense items.
+ $sql = "delete from tt_expense_items where org_id = $org_id";
+ $affected = $mdb2->exec($sql);
+ if (is_a($affected, 'PEAR_Error')) return false;
+
// Delete predefined expenses.
$sql = "delete from tt_predefined_expenses where org_id = $org_id";
$affected = $mdb2->exec($sql);
// Delete predefined expenses.
$sql = "delete from tt_predefined_expenses where org_id = $org_id";
$affected = $mdb2->exec($sql);