Problem/Motivation
In the function _portable_path_field_attach_save(), the code does not test for a non-empty field. If the field is empty, then attempts to reference $entity->{$field_name}[$language][0]['format'] produce a notice about an undefined offset of zero.
The same situation was fixed in the function _portable_path_field_attach_load() in June 2013. See #1897970: Undefined index: in _portable_path_field_attach_load() (line 52 of and this commit
Proposed resolution
See the patch.
Remaining tasks
Review, test.
User interface changes
None.
API changes
None.
Comments
Comment #2
solotandem commentedFixed in this commit.