Closed (fixed)
Project:
Rules
Version:
6.x-1.2
Component:
Rules Engine
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2010 at 22:13 UTC
Updated:
24 Nov 2011 at 17:28 UTC
hi there,
i'm trying to execute some custom php code after a form gets submitted. while trying to find the value of a form field, i used following code:
var_dump($form['acl']['view']['user_list']['#post']);
rules debugging says the code gets executed, but i dont get any output, not even a "null". if i change the code to:
var_dump($form['acl']['view']['user_list']);
i'll get this output (truncated):
array
'#post' =>
array
'acl' =>
array
'view' =>
array
'user_list' => string 'a:2:{i:1;s:5:"chief";i:3;s:5:"benni";}' (length=38)
i'm trying to get the value of the field "user_list" after the form is submitted, but as soon as i use a fieldname with a hash in it, the code doesn't get executed. if there is another way to get the value or if there is a way to escape the hash, please let me know.
Comments
Comment #1
DieterWeb commentedupdate: the hash doesnt seem to be the problem, it's something else. maybe the depth of the array. here is another test i've done:
first action with this custom php code:
output (truncated again):
now, next try with a deeper array level:
output:
nothing, no var_dump, no "null", just nothing.
i have absolutely no idea what the problem could be, so if anyone has any clue, please help.
Comment #2
DieterWeb commentedand to make it even more confusing, here is another test i just did:
first try, code:
output:
again nothing
second try, code:
output:
so, in the second example, it outputs both arrays, in the first example it outputs nothing. this is extremely strange.
Comment #3
fagoComment #4
mitchell commentedClosing older issues to make the issue queue easier to navigate. If you still need assistance, please try the latest versions, read through the documentation handbooks, and search for other other issues with relevant responses. This will more than likely give you an answer to your question, or you can always open another issue. Thanks.