Browse Source

ISLANDORA-655 OwnerId being wiped out.

Looks like the "modifyObject" SOAP call requires an owner ID...
By default, we were providing NULL, which would result in it being
blanked out.  I've made it so that it grabs the owner ID from the
object profile when it is NULL, so that it should be maintained
by default.
pull/151/head
Adam Vessey 12 years ago
parent
commit
b617131261
  1. 4
      api/fedora_item.inc

4
api/fedora_item.inc

@ -980,7 +980,9 @@ RDF;
$params = array(
'pid' => $this->pid,
'ownerId' => $ownerId,
'ownerId' => (($ownerId !== NULL)? //Default to the current owner if none is provided.
$ownerId:
$this->objectProfile->objOwnerId),
'state' => $state,
'label' => $label,
'logMessage' => $logMessage

Loading…
Cancel
Save