From fc6f6b0f1d1b05528c20ac3967e3af774fe76e04 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Wed, 8 May 2013 18:25:21 +0200 Subject: [PATCH] Ensure shared variable 'models' is always available in the ingest form. --- includes/ingest.form.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index 0a9ce6e6..d82ccec4 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -80,6 +80,8 @@ function islandora_ingest_form_init_form_state_storage(array &$form_state, array } // No need to persist the 'objects' within the configuration. unset($configuration['objects']); + // Required for step hooks. + $configuration['models'] = isset($configuration['models']) ? $configuration['models'] : array(); $form_state['islandora'] = array( 'step_id' => NULL, 'objects' => $objects,