mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
clear revision date when all revisors have been deleted
This commit is contained in:
parent
d1e79d1afc
commit
bf11f7cc87
|
@ -3,6 +3,7 @@
|
|||
--------------------------------------------------------------------------------
|
||||
- fix list of previous document versions (Closes: #471)
|
||||
- fix uploading files with fine uploader (Closes: #472)
|
||||
- clear revision date when all revisors have been deleted
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 6.0.9
|
||||
|
|
|
@ -212,7 +212,7 @@ if (count($revisionIndex["i"]) > 0) {
|
|||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_removed"));
|
||||
break;
|
||||
case -4:
|
||||
// email error
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_was_active"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -315,7 +315,7 @@ if (count($revisionIndex["g"]) > 0) {
|
|||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_already_removed"));
|
||||
break;
|
||||
case -4:
|
||||
// email error
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("recipient_was_active"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -323,6 +323,11 @@ if (count($revisionIndex["g"]) > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
/* If all revisors has been removed, then clear the next revision date */
|
||||
if(!$pIndRev && !$pGrpRev) {
|
||||
$content->setRevisionDate(false);
|
||||
}
|
||||
|
||||
/* Recheck status, because all revisors could have been removed */
|
||||
$content->verifyStatus(false, $user, getMLText('automatic_status_update'), $settings->_initialDocumentStatus);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user