When previewing a node, the resulting preview page often shows a foreach error, since the referrer (or reference_fields) array is not populated. The attached patch verifies that it's an array before going into the foreach.

CommentFileSizeAuthor
nodereferrer_create-preview.patch818 bytesvkareh
Support from Acquia helps fund testing for Drupal Acquia logo