diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php
index a5460e618..5664ec40c 100644
--- a/views/bootstrap/class.ObjectCheck.php
+++ b/views/bootstrap/class.ObjectCheck.php
@@ -103,7 +103,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style {
if($objects) {
if($repair) {
- echo "
".getMLText('repairing_objects')."
";
+ $this->warningMsg(getMLText('repairing_objects'));
}
print "";
print "\n\n";
@@ -114,6 +114,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style {
print "".getMLText("error")." | \n";
print " | \n";
print "
\n\n\n";
+ $needsrepair = false;
foreach($objects as $object) {
if($object['object']->isType('document')) {
$document = $object['object'];
@@ -123,6 +124,11 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style {
echo $txt;
else
echo $this->documentListRow($document, $previewer, false);
+ echo "".$object['msg'];
+ if($repair)
+ $document->repair();
+ echo " | ";
+ $needsrepair = true;
}
} elseif($object['object']->isType('documentcontent')) {
$document = $object['object']->getDocument();
@@ -145,16 +151,19 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style {
echo $txt;
else
echo $this->folderListRow($folder, true);
- echo "".$object['msg']." | ";
+ echo "".$object['msg'];
+ if($repair)
+ $folder->repair();
+ echo " | ";
echo $this->folderListRowEnd($folder);
+ $needsrepair = true;
}
}
}
- $this->needsrepair = false;
print "
\n";
- if($this->needsrepair && $repair == 0) {
- echo ''.getMLText('do_object_repair').'
';
+ if($needsrepair && $repair == 0) {
+ echo '';
}
}
} /* }}} */
@@ -593,7 +602,7 @@ $(document).ready( function() {
$repairobjects = $this->params['repairobjects'];
$this->enableClipboard = $this->params['enableclipboard'];
- $this->htmlAddHeader(''."\n", 'js');
+// $this->htmlAddHeader(''."\n", 'js');
$this->htmlStartPage(getMLText("admin_tools"));
$this->globalNavigation();