activecollab/application/modules/resources/handlers/on_project_object_copied.php
foreach($rows as $row) {if (strtolower($row['type']) == 'timerecord') continue;
Instant access to activeCollab, no installation needed.
If you are already a user of activeCollab, you can log in here.
What I really don't understand is even though there seems to be this nice hierarchy followed to copy every object... task and time objects are not instantiated during this string of events, yet get copied.
I'm stumped.
I've tried doing something as simple as adding echo statements to copy() (ProjectObject class) and to on_object_inserted (oops.. that was for checklists, but it gets every event regardless, doesn't it?), and all I get for output looks like this:
---copy new Milestone---
inserted: Milestone
inserted: Subscription
---copy new Checklist---
inserted: Checklist
---copy new Discussion---
inserted: Discussion
inserted: Subscription
---copy new File---
inserted: File
inserted: Subscription
---copy new Ticket---
inserted: Ticket
inserted: Subscription
inserted: Subscription
inserted: Subscription
inserted: Subscription
---copy new Ticket---
inserted: Ticket
inserted: Subscription
.. in other words, no tasks, no time, so ... how do I stop time from being copied?