When a node has a empty body I get the following 2 error, when SAVING a node with an empty body:
Notice: Undefined offset: 0 in _icl_wrapper_check_node_body() (line 811 of /Applications/MAMP/htdocs/zoetis/sites/all/modules/contrib/translation_management/icl_core/icl_core.wrapper.inc).
Notice: Undefined offset: 0 in _icl_wrapper_check_node_body() (line 812 of /Applications/MAMP/htdocs/zoetis/sites/all/modules/contrib/translation_management/icl_core/icl_core.wrapper.inc).
In the use case, the $node->body[$node->language] is set to an empty array. So "$body = $node->body[$node->language][0]['value'];" throws a warning.
PS: This is a great module.
Comments
Comment #1
Bill Choy commentedNeed to replace the "isset()" test with a "! empty()".
If the body is empty, then $node->body[$node->language] is set, but its an empty array.
Comment #2
hectorelgomez commentedThanks it works!
line 809, translation_manager/icl_core/icl_core.wrapper.inc
Comment #2.0
hectorelgomez commentedUpdated issue summary.