Problem/Motivation
The token var module and its interaction with other contrib modules is producing ~50 notices after the cache (token registry) is cleared
(see attached)
Proposed resolution
Change the boolean check on line 37 (commit hash 0b48d7) to an isset check
if (!empty($token_var_selected_variables) && ($token_var_selected_variables[$key . "|" . $var_key ])) {
becomes
if (!empty($token_var_selected_variables) && isset($token_var_selected_variables[$key . "|" . $var_key ])) {
I've checked the latest dev version in the repo, and this issue seems to be unresolved in the latest dev branch.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | token_var-undef-array-index-token-car-token-info-1879804-4.patch | 1.31 KB | karenann |
Comments
Comment #1
Chim commentedDouble checked by downloading the latest dev, and issue is unresolved.
fix:
Comment #2
piyuesh23 commentedHi chim,
I have updated the dev version of the module with the required changes. The boolean check should be invoked after the isset check. SO both isset and the boolean check should stay in the code.
Thanks.
Comment #3
Chim commentedThanks Piyuesh
Comment #4
karenann commentedI had to manually apply the edits to 7.x-1.1 release. Here's a patch file for testing. First patch, hope I got this right. See also, http://drupal.org/node/1871536#comment-7316576
Comment #5
phayes commentedCommitted, thanks!
Comment #6.0
(not verified) commentedspecified which cache