diff --git a/entityreference.module b/entityreference.module index 8a279be..a9eac1b 100644 --- a/entityreference.module +++ b/entityreference.module @@ -244,7 +244,7 @@ function entityreference_field_validate($entity_type, $entity, $field, $instance */ function entityreference_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) { // Optionally hardcode the revision. - if (!empty($instance['settings']['lock_revision'])) { + if (!empty($field['settings']['handler_settings']['lock_revision'])) { $dest_entity_type = $field['settings']['target_type']; foreach ($items as $key => $val) { if ($dest_entity_type == 'bean') {