diff --git a/islandora_basic_image/islandora_basic_image.module b/islandora_basic_image/islandora_basic_image.module index e17fddb6..eedabf8e 100644 --- a/islandora_basic_image/islandora_basic_image.module +++ b/islandora_basic_image/islandora_basic_image.module @@ -81,8 +81,8 @@ function islandora_basic_image_form_islandora_basic_image_node_form_alter(&$form function islandora_basic_image_add_parent_uuid(array $form, array &$form_state) { $node = $form_state['node']; $node->parent_collection = ""; - if (isset($form_state['parent_collection']['#value'])) { - $node->parent_collection = $form_state['parent_collection']['#value']; + if (isset($form_state['values']['parent_collection'])) { + $form_state['values']['field_fedora_has_parent']['und'][0]['value'] = $form_state['values']['parent_collection']; } }