Browse Source

Fixed error when deleting emtpy collections. PID is now displayed properly

pull/124/merge
rwincewicz 13 years ago
parent
commit
d06288a292
  1. 4
      islandora_basic_collection/includes/delete_collection.inc

4
islandora_basic_collection/includes/delete_collection.inc

@ -21,7 +21,7 @@ function islandora_collection_deletion_form($form, &$form_state, $object) {
$submit_text_message = ($table) ? "Delete selected objects" : "Delete collection";
$form = array();
$form['collection_delete']['titlebox'] = array(
'#type' => 'item',
'#title' => t("Delete objects from @collection_pid", array('@collection_pid' => $pid)),
@ -113,7 +113,7 @@ function islandora_collection_deletion_form_submit($form, &$form_state) {
* @param string $pid
*/
function delete_root_collection($object) {
$pid = $object->id;
try {
$object->repository->purgeObject($object->id);
} catch (RepositoryException $e) {

Loading…
Cancel
Save