Closed (fixed)
Project:
Apture
Version:
6.x-1.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Nov 2009 at 11:02 UTC
Updated:
19 Dec 2009 at 01:09 UTC
It seems that there are two different paths for creating a node:
/admin/add/node/type
/add/nodel/type
(at least in my site (with admin_menu) there are this two options).
The function "apture_valid_editing_node();" checks the URL, but only for the second case. Inserting this line
if(!$is_content_add_or_edit_node){$is_content_add_or_edit_node = (arg(0) == 'admin' && (arg(1) == 'node') && (arg(2) == 'add') && in_array(arg(3), $node_types, true));}
in the function
apture_valid_editing_node(apture.module)
after the line
$is_content_add_or_edit_node = (arg(0) == 'node' && ((arg(1) == 'add') || (arg(2) == 'edit')) && in_array($type, $node_types, true));
fixed the problem for me.
I'm not sure about it, but i think it should fix the "button"- issue.
I still opened a new thread as i'm insecure wether it's the same problem or not.
Comments
Comment #1
oerpli commentedSomehow i failed at formatting. I hope it's still clear what i've meant.
Comment #2
oerpli commentedhttp://drupal.org/node/663638