diff --git a/api/fedora_item.inc b/api/fedora_item.inc index 51870ab5..0c00e175 100644 --- a/api/fedora_item.inc +++ b/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 diff --git a/fedora_repository.module b/fedora_repository.module index 04e9f355..1ad76e6e 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -797,8 +797,9 @@ function fedora_repository_edit_qdc_form(&$form_state, $pid, $dsId = NULL) { // There is no custom function, so just load the standard QDC form. $metaDataForm = new formClass(); //currently we only edit the dc metadata. If you defined a custom form with a custom handler you are sol for now. - return $metaDataForm->createMetaDataForm($pid, $dsId, $client, $form_state); + $output = $metaDataForm->createMetaDataForm($pid, $dsId, $client, $form_state); } + return $output; }