Closed (fixed)
Project:
Prepopulate
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Dec 2009 at 01:08 UTC
Updated:
7 Sep 2010 at 05:00 UTC
Invalid variable in prepopulate.module makes it unable to traverse deep variables:
I have a taxonomy term I want to prepopulate. However the taxonomy term needs to be set to a specific vocabulary id so the url is ?edit[taxonomy][4]=1 where 4 is the vocabulary id. The recursive call to _prepopulate_request_walk() fails because a particular getvar variable was not renamed to requestvar with the rest during the last release.
--- prepopulate.module.orig 2009-12-28 17:34:17.000000000 -0700
+++ prepopulate.module 2009-12-28 17:33:43.000000000 -0700
@@ -57,7 +57,7 @@ function _prepopulate_request_walk(&$for
}
else {
foreach (array_keys($requestslice) as $requestvar) {
- if (element_child($requestvar) && is_array($form) && !is_null($form[$getvar])) {
+ if (element_child($requestvar) && is_array($form) && !is_null($form[$requestvar])) {
_prepopulate_request_walk($form[$requestvar], $requestslice[$requestvar]);
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| prepopulate.module.patch | 569 bytes | jjemmett |
Comments
Comment #1
playfulwolf commentedpatch works for me, had the same headache for a few hours...
Comment #2
jjemmett commentedAs the change is trivial and successful testing/support was voiced, I am changing status to tested.
Comment #3
jjemmett commentededit: sorry for the duplication
Comment #4
tdimg commentedworks for me too, thanks!
Comment #5
jbrauer commentedThanks. A similar fix was applied but this issue wasn't updated.