From edd8b9eda02014ec5bd23afb8a89294a469cb495 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 6 Dec 2012 15:51:29 -0400 Subject: [PATCH] Fix off-by-one error. --- 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 94d692e8..34089f7b 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -256,7 +256,7 @@ function islandora_ingest_form_next_button(array $step_info) { function islandora_ingest_form_next_submit(array $form, array &$form_state) { $step = islandora_ingest_form_get_step_number($form_state); islandora_ingest_form_stash_info($form_state); - $step = min(array($step + 1, islandora_ingest_form_get_step_count($form_state))) ; + $step = min(array($step + 1, islandora_ingest_form_get_step_count($form_state) - 1)) ; $form_state['islandora']['step_id'] = islandora_ingest_form_get_step_id($form_state, $step); islandora_ingest_form_grab_info($form_state); $form_state['rebuild'] = TRUE;