Browse Source

Fix move_to_trash function.

pull/126/head
Adam Vessey 13 years ago
parent
commit
7b5d3cbee9
  1. 6
      api/fedora_item.inc

6
api/fedora_item.inc

@ -771,9 +771,9 @@ RDF;
/**
* Set the object to a deleted state
*/
function move_to_trash($log_message = 'Flagged deleted using Islandora API.') {
function move_to_trash($log_message = 'Flagged deleted using Islandora API.', $quiet = TRUE) {
// Loop through the datastreams and mark them deleted
foreach ($this->get_datastreams_list_as_array() as $dsid) {
foreach ($this->get_datastreams_list_as_array() as $dsid => $info) {
$this->set_datastream_state($dsid, 'D');
}
@ -781,7 +781,7 @@ RDF;
$params = array(
'pid' => $this->pid,
'state' => 'D',
'logMessage' => $logMessage,
'logMessage' => $log_message,
'label' => $this->objectProfile->objLabel,
'ownerId' => null,
);

Loading…
Cancel
Save