mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
reindex document also if creation time is equal to content creation time
This commit is contained in:
parent
b70fd9c81a
commit
24f0555d92
|
@ -105,7 +105,7 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
|
|||
$created = 0;
|
||||
}
|
||||
$content = $document->getLatestContent();
|
||||
if($created >= $content->getDate()) {
|
||||
if($created > $content->getDate()) {
|
||||
echo " (Document unchanged)\n";
|
||||
} else {
|
||||
$index->delete($hit->id);
|
||||
|
|
|
@ -152,7 +152,7 @@ $(document).ready( function() {
|
|||
*/
|
||||
} else {
|
||||
/* Check if the attribute created is set or has a value older
|
||||
* than the lasted content. Documents without such an attribute
|
||||
* than the lastet content. Documents without such an attribute
|
||||
* where added when a new document was added to the dms. In such
|
||||
* a case the document content wasn't indexed.
|
||||
*/
|
||||
|
@ -162,7 +162,7 @@ $(document).ready( function() {
|
|||
$created = 0;
|
||||
}
|
||||
$content = $document->getLatestContent();
|
||||
if($created >= $content->getDate() && !$forceupdate) {
|
||||
if($created > $content->getDate() && !$forceupdate) {
|
||||
echo $indent."<span id=\"status_".$document->getID()."\" class=\"indexstatus\" data-docid=\"".$document->getID()."\">document unchanged</span>";
|
||||
} else {
|
||||
$index->delete($hit->id);
|
||||
|
|
Loading…
Reference in New Issue
Block a user