Browse Source

Sometimes ingest steps will change when going backward in the steps (because content models may be added/removed) so using the form state will take the user to where they expect rather than creating a new list of steps based on the current models.

pull/333/head
William Panting 12 years ago
parent
commit
49a3b3e3cd
  1. 2
      includes/ingest.form.inc

2
includes/ingest.form.inc

@ -273,7 +273,7 @@ function islandora_ingest_form_get_previous_step_id(array &$form_state, $step_id
if ($step_id == NULL) {
return islandora_ingest_form_get_last_step_id($form_state);
}
$step_ids = array_keys(islandora_ingest_form_get_steps($form_state));
$step_ids = array_keys($form_state['islandora']['step_storage']);
$index = array_search($step_id, $step_ids);
if ($index !== FALSE && --$index >= 0) {
return $step_ids[$index];

Loading…
Cancel
Save