diff --git a/fedora_repository.module b/fedora_repository.module index 9ee96352..cbc1308c 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -430,7 +430,7 @@ function fedora_repository_purge_object_form_submit($form, &$form_state) { } return; } - if (empty($collectionPid)) { + if (empty($collectionPid) && $_SESSION['fedora_collection'] != $pid) { $collectionPid = $_SESSION['fedora_collection']; } if (!empty($form_state['values']['referrer'])) {