diff --git a/CollectionClass.inc b/CollectionClass.inc index 5882a460..fcd59d00 100644 --- a/CollectionClass.inc +++ b/CollectionClass.inc @@ -687,6 +687,9 @@ class CollectionClass { global $base_url; $collection_pid = $pid; //we will be changing the pid later maybe $parsedContent = NULL; + if(!isset($this->collectionObject)){ + $this->collectionObject = new ObjectHelper($pid); + } $contentModels = $this->collectionObject->get_content_models_list($pid); $isCollection = FALSE; //if this is a collection object store the $pid in the session as it will come in handy diff --git a/plugins/tagging_form.inc b/plugins/tagging_form.inc index f00274d4..718459b2 100644 --- a/plugins/tagging_form.inc +++ b/plugins/tagging_form.inc @@ -61,7 +61,7 @@ function fedora_repository_image_tagging_form($form_state, $pid) { $tagset = new TagSet($obj); $tags = array(); foreach ($tagset->tags as $tag) { - $form_tag =& $form['tags-wrapper']['tags'][$tag['name']] = array( + $form_tag = $form['tags-wrapper']['tags'][$tag['name']] = array( '#prefix' => '