mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-01 05:37:37 +00:00
list reviews/approvals which have lost their user/group
This commit is contained in:
parent
098f15202c
commit
711114310b
|
|
@ -64,6 +64,11 @@ $unlinkeddocuments = $dms->checkDocuments();
|
|||
$nofilesizeversions = $dms->getNoFileSizeDocumentContent();
|
||||
$nochecksumversions = $dms->getNoChecksumDocumentContent();
|
||||
$duplicateversions = $dms->getDuplicateDocumentContent();
|
||||
foreach(array('review', 'approval') as $process) {
|
||||
foreach(array('user', 'group') as $ug) {
|
||||
$processwithoutusergroup[$process][$ug] = $dms->getProcessWithoutUserGroup($process, $ug);
|
||||
}
|
||||
}
|
||||
$rootfolder = $dms->getFolder($settings->_rootFolderID);
|
||||
|
||||
if($view) {
|
||||
|
|
@ -74,6 +79,7 @@ if($view) {
|
|||
$view->setParam('nofilesizeversions', $nofilesizeversions);
|
||||
$view->setParam('nochecksumversions', $nochecksumversions);
|
||||
$view->setParam('duplicateversions', $duplicateversions);
|
||||
$view->setParam('processwithoutusergroup', $processwithoutusergroup);
|
||||
$view->setParam('unlink', $unlink);
|
||||
$view->setParam('setfilesize', $setfilesize);
|
||||
$view->setParam('setchecksum', $setchecksum);
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
|||
$nofilesizeversions = $this->params['nofilesizeversions'];
|
||||
$nochecksumversions = $this->params['nochecksumversions'];
|
||||
$duplicateversions = $this->params['duplicateversions'];
|
||||
$processwithoutusergroup = $this->params['processwithoutusergroup'];
|
||||
$repair = $this->params['repair'];
|
||||
$unlink = $this->params['unlink'];
|
||||
$setfilesize = $this->params['setfilesize'];
|
||||
|
|
@ -407,6 +408,37 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
|||
print "</tbody></table>\n";
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
|
||||
$this->contentHeading(getMLText("process_without_user_group"));
|
||||
$this->contentContainerStart();
|
||||
|
||||
if($processwithoutusergroup) {
|
||||
print "<table class=\"table table-condensed\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("process")."</th>\n";
|
||||
print "<th>".getMLText("user_group")."</th>\n";
|
||||
print "<th>".getMLText("documentid")."</th>\n";
|
||||
print "<th>".getMLText("version")."</th>\n";
|
||||
print "<th>".getMLText("required")."</th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
foreach(array('review', 'approval') as $process) {
|
||||
foreach(array('user', 'group') as $ug) {
|
||||
if($processwithoutusergroup[$process][$ug]) {
|
||||
foreach($processwithoutusergroup[$process][$ug] as $rec) {
|
||||
print "<tr>";
|
||||
print "<td>".$process."</td>";
|
||||
print "<td>".$ug."</td>";
|
||||
print "<td>".$rec['documentID']."</td><td>".$rec['version']."</td><td>".$rec['name']."</td>";
|
||||
print "<td>".$rec['required']."</td>";
|
||||
print "</tr>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
print "</tbody></table>\n";
|
||||
}
|
||||
|
||||
$this->contentContainerEnd();
|
||||
$this->contentEnd();
|
||||
$this->htmlEndPage();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user