|
|
|
@ -118,7 +118,7 @@ function islandora_object_properties_form_submit(array $form, array &$form_state |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
// Confirm if user is about to lock themselves out of this object. |
|
|
|
// Confirm if user is about to lock themselves out of this object. |
|
|
|
if (in_array($form_state['values']['object_state'], ['I','D'])) { |
|
|
|
if (in_array($form_state['values']['object_state'], array('I','D'))) { |
|
|
|
if ($form_state['object']->state == 'A') { |
|
|
|
if ($form_state['object']->state == 'A') { |
|
|
|
if (!user_access(ISLANDORA_ACCESS_INACTIVE_AND_DELETED_OBJECTS)) { |
|
|
|
if (!user_access(ISLANDORA_ACCESS_INACTIVE_AND_DELETED_OBJECTS)) { |
|
|
|
$form_state['islandora']['needs_confirmation'] = TRUE; |
|
|
|
$form_state['islandora']['needs_confirmation'] = TRUE; |
|
|
|
|