Browse Source

Merge pull request #472 from jordandukart/7.x-ingest-steps-redirect

Use redirect set in form state before defaulting to the object.
pull/474/head
William Panting 11 years ago
parent
commit
582dde4bea
  1. 2
      includes/ingest.form.inc

2
includes/ingest.form.inc

@ -769,7 +769,7 @@ function islandora_ingest_form_submit(array $form, array &$form_state) {
islandora_ingest_form_execute_consecutive_callback_steps($form, $form_state, $step); islandora_ingest_form_execute_consecutive_callback_steps($form, $form_state, $step);
} }
// Ingest the objects. // Ingest the objects.
$set_redirect = TRUE; $set_redirect = isset($form_state['redirect']) ? FALSE : TRUE;
foreach ($form_state['islandora']['objects'] as &$object) { foreach ($form_state['islandora']['objects'] as &$object) {
try { try {
islandora_add_object($object); islandora_add_object($object);

Loading…
Cancel
Save