From 5d3b82327badfc151aebcdaa42b8da787b6654db Mon Sep 17 00:00:00 2001 From: ppound Date: Wed, 9 Feb 2011 10:03:11 -0400 Subject: [PATCH] updated createAddDatastream form to make the array that populates the dropdown associative --- formClass.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/formClass.inc b/formClass.inc index 356f31f3..fed6d2aa 100644 --- a/formClass.inc +++ b/formClass.inc @@ -697,6 +697,10 @@ class formClass { ); if (!empty($unused_dsids)) { + $dsidsForForm = array(); + foreach ($unused_dsids as $dsid){ + $dsidsForForm[$dsid]=$dsid; + } $form['stream_id'] = array( '#type' => 'select', '#title' => t('Datastream ID'), @@ -704,7 +708,7 @@ class formClass { '#weight' => '-1', '#description' => t('Datastream IDs defined by the content model.'), ); - $form['stream_id']['#options'] = $unused_dsids; + $form['stream_id']['#options'] = $dsidsForForm; } else { $form['stream_id'] = array(