I used cck_field_perms to hide the viewfield. When users who do not have access to view that field try to edit the node, they get the error:
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/weavenew/www/www/dp/includes/database.mysql.inc on line 400.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, 0)' at line 1 query: INSERT INTO content_type_page (field_dynamic_component_vname, field_dynamic_component_vargs, vid, nid) VALUES ('', , 0, 0) in /home/weavenew/www/www/dp/includes/database.mysql.inc on line 172.
The second value's quotes are omitted from the query string triggering an error.
Heads up.
Thanks!
Mac
Comments
Comment #1
jamesJonas commentedI have just used FormFilter.module to hide the arguments field. May be an option.
Comment #2
yoyek commentedI have the same error, anyone knows a fix?
Comment #3
darren ohDuplicate of issue 217757.