add removal of receipts and revisions for users/group no longer available

This commit is contained in:
Uwe Steinmann 2017-08-22 18:00:06 +02:00
parent 716cbfa090
commit 81b153ccd5

View File

@ -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) {