avatar jlarmstrong Pro Nov 18. 2009. 9:46 pm
Can anyone suggest how to modify the API to allow the move() from the API? I need to add on some additional workflow which will require moving tickets from a "Pending" project to their real projects.
avatar Ilija Studen Staff Nov 19. 2009. 4:59 am
Please check ProjectObjectsController in /activecollab/application/modules/system/controllers to see how other actions are provided to the API.
avatar jlarmstrong Pro Nov 19. 2009. 8:35 am
Ilija,

Actually the 403 forbidden is getting thrown before the move() function in ProjectObjectsController is even fired. That is what i was trying to hunt down as I don't see the event being fired in the logs at all.

path_info=projects/1/objects/2/move

How can i find out where the on_shutdown event is being triggered?

------- Just got it to show up in the logs after deleting the cache ----------

events

#1 - info - Event 'on_before_init' triggered
#2 - info - Event 'on_after_init' triggered
#3 - info - Event 'on_project_tabs' triggered
#4 - info - Callback 'milestones_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#5 - info - Callback 'discussions_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#6 - info - Callback 'files_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#7 - info - Callback 'calendar_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#8 - info - Callback 'pages_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#9 - info - Callback 'tickets_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#10 - info - Callback 'timetracking_handle_on_project_tabs' called for 'on_project_tabs'. Execution result: NULL
#11 - info - Event 'on_shutdown' triggered
avatar Ilija Studen Staff Nov 19. 2009. 12:57 pm
It's because you did not whitelist move() method to the API. Please check $api_actions property of that controller class to whitelist move() action.
avatar jlarmstrong Pro Nov 19. 2009. 1:12 pm
Thanks, I actually figured this out a little bit ago and have been able to get my new workflow piece working.