From 49a3b3e3cd51f5237308e341bf6794f013907a9c Mon Sep 17 00:00:00 2001 From: William Panting Date: Tue, 14 May 2013 18:40:35 -0300 Subject: [PATCH] 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. --- includes/ingest.form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index a2d5a833..59aa6fc4 100644 --- a/includes/ingest.form.inc +++ b/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];