mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 05:57:34 +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
|
* Returns a list of reviews, approvals, receipts, revisions which are not
|
||||||
* to a user, group anymore
|
* linked to a user, group anymore
|
||||||
*
|
*
|
||||||
* This method is for finding reviews or approvals whose user
|
* This method is for finding reviews or approvals whose user
|
||||||
* or group was deleted and not just removed from the process.
|
* 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
|
* to a user, group anymore
|
||||||
*
|
*
|
||||||
* This method is for removing all reviews or approvals whose user
|
* This method is for removing all reviews or approvals whose user
|
||||||
|
@ -3118,6 +3118,12 @@ class SeedDMS_Core_DMS {
|
||||||
case 'approval':
|
case 'approval':
|
||||||
$queryStr = "DELETE FROM tblDocumentApprovers";
|
$queryStr = "DELETE FROM tblDocumentApprovers";
|
||||||
break;
|
break;
|
||||||
|
case 'receipt':
|
||||||
|
$queryStr = "DELETE FROM tblDocumentRecipients";
|
||||||
|
break;
|
||||||
|
case 'revision':
|
||||||
|
$queryStr = "DELETE FROM tblDocumentRevisors";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
$queryStr .= " WHERE";
|
$queryStr .= " WHERE";
|
||||||
switch($usergroup) {
|
switch($usergroup) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user