mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
add removal of receipts and revisions for users/group no longer available
This commit is contained in:
parent
716cbfa090
commit
81b153ccd5
|
@ -3066,8 +3066,8 @@ class SeedDMS_Core_DMS {
|
|||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Returns a list of reviews, approvals which are not linked
|
||||
* to a user, group anymore
|
||||
* Returns a list of reviews, approvals, receipts, revisions which are not
|
||||
* linked to a user, group anymore
|
||||
*
|
||||
* This method is for finding reviews or approvals whose user
|
||||
* or group was deleted and not just removed from the process.
|
||||
|
@ -3100,7 +3100,7 @@ class SeedDMS_Core_DMS {
|
|||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Removes all reviews, approvals which are not linked
|
||||
* Removes all reviews, approvals, receipts, revisions which are not linked
|
||||
* to a user, group anymore
|
||||
*
|
||||
* This method is for removing all reviews or approvals whose user
|
||||
|
@ -3118,6 +3118,12 @@ class SeedDMS_Core_DMS {
|
|||
case 'approval':
|
||||
$queryStr = "DELETE FROM tblDocumentApprovers";
|
||||
break;
|
||||
case 'receipt':
|
||||
$queryStr = "DELETE FROM tblDocumentRecipients";
|
||||
break;
|
||||
case 'revision':
|
||||
$queryStr = "DELETE FROM tblDocumentRevisors";
|
||||
break;
|
||||
}
|
||||
$queryStr .= " WHERE";
|
||||
switch($usergroup) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user