Closed (fixed)
Project:
Secure Notes
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2015 at 21:32 UTC
Updated:
24 Mar 2015 at 01:40 UTC
Jump to comment: Most recent
To reproduce:
Include a file field on your secure notes content type.
Create an invitation to make a secure note.
Follow the invitation link.
Upload a file (choose a file and press Upload).
You'll get an error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'node_form' not found or invalid function name in drupal_retrieve_form() (line 841 of /var/www/zivtechnotes/code/includes/form.inc).
and the file upload widget is gone.
The attached patch fixes this by using form_load_include and drupal_build_form rather than module_load_include and the node_add function.
| Comment | File | Size | Author |
|---|---|---|---|
| secure_notes.patch | 1011 bytes | jody lynn |
Comments
Comment #1
tizzo commentedI reviewed and tested, LGTM.
Comment #3
lliss commentedThanks. Committed.
Comment #4
lliss commented