When you install Admin Views, a new command appears in admin/content, named "Modify entity values". When you execute that action, a large form appears which gathers all possible fields for selected content items. Apparently it cannot handle fields set to use TRT. The messages are:
Notice: Undefined index: in _term_reference_tree_get_options() (line 217 of /sites/all/modules/term_reference_tree/term_reference_tree.module).
Notice: Undefined property: stdClass::$children in _term_reference_tree_build_item() (line 679 of /sites/all/modules/term_reference_tree/term_reference_tree.widget.inc).| Comment | File | Size | Author |
|---|---|---|---|
| #5 | taxonomy_term_reference_tree-1564400-5.patch | 660 bytes | kbasarab |
| #3 | undefined_index_fix-1564400-3.patch | 659 bytes | stongo |
| #2 | undefined_index_fix-1564400-2.patch | 775 bytes | stongo |
Comments
Comment #1
FranckV commentedI had the same issue with version 7.x-1.9. The issue seems to come from a bad treatment when dealing with a non mandatory field where the "N/A" empty case generates a null.
Here is my fix, it should work for most of the case :
ORIGINAL CODE in modules/term_reference_tree/term_reference_tree.module
NEW CODE in modules/term_reference_tree/term_reference_tree.module
Comment #2
stongo commentedFranckV, thanks for the suggestion, it is a good starting point. The else statement is extraneous and should still check the first condition in the OR.
Here's a simpler patch against 7.x-1.x-dev that fixes the same issue.
Comment #3
stongo commentedActually, scrap the above patch, all it needs is an isset() in the original if condition.
Here's another patch.
Comment #4
dave reidComment #5
kbasarab commentedUpdates patch in #3 to apply to 7.x-1.10 and 7.x-1.x dev.
Comment #6
pifagor commentedLook good
Comment #8
alex_optimComment #9
alex_optimComment #10
alex_optim