Closed (fixed)
Project:
Quote
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2011 at 11:30 UTC
Updated:
4 Jan 2012 at 18:10 UTC
Jump to comment: Most recent file
returns this error and quotes are blank
Notice: Undefined index: safe_value in quote_form_alter() (line 115 of /home/ventbbxc/public_html/modules/quote/quote.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | quote.module.patch | 926 bytes | khoomy |
Comments
Comment #1
khoomy commentedAfter investigation i found that , there are two types of Text Processing for body field as Plain Text and Filtered Text. Plain Text enable save_value in node object but Filtered Text does not. And safe_value is being used for quote for nodes.
At line 115 in quote.module replace
with
will resolve your issue.
Comment #2
khoomy commentedPatch attached for safe_value issue
Comment #3
Sk1Zy commentedStill getting this error after applying both fixes listed here. Tried both alpha and dev releases.
After applying patch i get:
Notice: Undefined index: is in quote_form_alter() (line 114 of /home/grimurd/public_html/sites/all/modules/quote/quote.module).
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in quote_form_alter() (line 114 of /home/grimurd/public_html/sites/all/modules/quote/quote.module).
Notice: Undefined index: is in quote_form_alter() (line 114 of /home/grimurd/public_html/sites/all/modules/quote/quote.module).
Comment #4
Pimz commentedAt line 115 I replaced
$quote = $node->body[$node->language][0]['safe_value'];with
$quote = $node->body[LANGUAGE_NONE][0]['value'];This worked for me.
Comment #5
Zen commentedThanks for the report. I've committed a fix. Please test with the -dev branch and reopen with details on the text format that you are using for the body field if this still persists.
-K