Skip to content

Commit

Permalink
Standardize way of getting object from ingest form after submitting f…
Browse files Browse the repository at this point in the history
…ile upload. Address ISLANDORA-1451.
  • Loading branch information
ruebot committed Oct 2, 2015
1 parent d065f77 commit e4acf84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/image_upload.form.inc
Expand Up @@ -45,7 +45,7 @@ function islandora_basic_image_image_upload_form(array $form, array &$form_state
* The Drupal form state.
*/
function islandora_basic_image_image_upload_form_submit(array $form, array &$form_state) {
$object = $form_state['islandora']['objects'][0];
$object = islandora_ingest_form_get_object($form_state);
if (empty($object['OBJ'])) {
$ds = $object->constructDatastream('OBJ', 'M');
$object->ingestDatastream($ds);
Expand Down

0 comments on commit e4acf84

Please sign in to comment.