From 14a988cb470686832cf129c366386adbfc776351 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Tue, 11 Jan 2011 11:38:42 -0400 Subject: [PATCH] Minor fix for delete redirect. --- fedora_repository.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) {