Closed (cannot reproduce)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2013 at 22:48 UTC
Updated:
30 Jan 2014 at 22:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
valdo commentedAttached patch to fix this issue. I have added
ctools_include('export');toservices_endpoint_save(), and also toservices_endpoint_delete()where it was also missing and could lead into the same error in future.Comment #2
marcingy commentedTests past on d.o bot without this patch....
Comment #3
valdo commentedI'll re-test locally again, I'll try to run the full test for this module, previously I did just the single Resource Taxonomy test (I did it on a clean Drupal install, with only the necessary modules enabled).
Though I think those includes should there be anyway (as they are in other functions which use ctools_export_* functions, e.g. services_endpoint_new(), services_endpoint_load(), services_endpoint_load_all() etc.).
Right now if I need for some reasons to call that function from my custom module, I get the fatal error anyway.
If there is a reason why it should not be included then ok.
Comment #4
kylebrowning commented