Verified Commit 6c6dd144 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

Prevent the passage of a restituted to preserved archive

parent 568b3956
......@@ -36,7 +36,7 @@ class archive extends \bundle\recordsManagement\Controller\archive
public function setStatus($archiveIds, $status)
{
$statusList = [];
$statusList['preserved'] = array('frozen', 'disposable', 'error', 'restituable', 'restituted', 'transferable');
$statusList['preserved'] = array('frozen', 'disposable', 'error', 'restituable', 'transferable');
$statusList['restituable'] = array('preserved');
$statusList['restituted'] = array('restituable');
$statusList['transfered'] = array('transferable');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment