mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
add new checks for unlinked documents and folders
This commit is contained in:
parent
51d775c158
commit
b5b93470a5
|
@ -860,6 +860,8 @@ $text = array(
|
|||
'unknown_owner' => "Unknown owner id",
|
||||
'unknown_user' => "Unknown user id",
|
||||
'unlinked_content' => "Unlinked content",
|
||||
'unlinked_folders' => "Unlinked folders",
|
||||
'unlinked_documents' => "Unlinked documents",
|
||||
'unlinking_objects' => "Unlinking content",
|
||||
'unlock_cause_access_mode_all' => "You can still update it because you have access-mode \"all\". Locking will automatically be removed.",
|
||||
'unlock_cause_locking_user' => "You can still update it because you are also the one that locked it. Locking will automatically be removed.",
|
||||
|
|
|
@ -168,6 +168,8 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
|||
$user = $this->params['user'];
|
||||
$folder = $this->params['folder'];
|
||||
$unlinkedversions = $this->params['unlinkedcontent'];
|
||||
$unlinkedfolders = $this->params['unlinkedfolders'];
|
||||
$unlinkeddocuments = $this->params['unlinkeddocuments'];
|
||||
$nofilesizeversions = $this->params['nofilesizeversions'];
|
||||
$nochecksumversions = $this->params['nochecksumversions'];
|
||||
$repair = $this->params['repair'];
|
||||
|
@ -202,6 +204,52 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
|
|||
}
|
||||
$this->contentContainerEnd();
|
||||
|
||||
if($unlinkedfolders) {
|
||||
$this->contentHeading(getMLText("unlinked_folders"));
|
||||
$this->contentContainerStart();
|
||||
print "<table class=\"table-condensed\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("id")."</th>\n";
|
||||
print "<th>".getMLText("parent")."</th>\n";
|
||||
print "<th>".getMLText("error")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
foreach($unlinkedfolders as $error) {
|
||||
echo "<tr>";
|
||||
echo "<td>".$error['name']."</td>";
|
||||
echo "<td>".$error['id']."</td>";
|
||||
echo "<td>".$error['parent']."</td>";
|
||||
echo "<td>".$error['msg']."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
print "</tbody></table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
if($unlinkeddocuments) {
|
||||
$this->contentHeading(getMLText("unlinked_documents"));
|
||||
$this->contentContainerStart();
|
||||
print "<table class=\"table-condensed\">";
|
||||
print "<thead>\n<tr>\n";
|
||||
print "<th>".getMLText("name")."</th>\n";
|
||||
print "<th>".getMLText("id")."</th>\n";
|
||||
print "<th>".getMLText("parent")."</th>\n";
|
||||
print "<th>".getMLText("error")."</th>\n";
|
||||
print "<th></th>\n";
|
||||
print "</tr>\n</thead>\n<tbody>\n";
|
||||
foreach($unlinkeddocuments as $error) {
|
||||
echo "<tr>";
|
||||
echo "<td>".$error['name']."</td>";
|
||||
echo "<td>".$error['id']."</td>";
|
||||
echo "<td>".$error['parent']."</td>";
|
||||
echo "<td>".$error['msg']."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
print "</tbody></table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
|
||||
$this->contentHeading(getMLText("unlinked_content"));
|
||||
$this->contentContainerStart();
|
||||
if($unlink) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user