LetoDMS Community Forum
SOLVED - Expiry system problem and Unknown status in search results - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11)
+--- Thread: SOLVED - Expiry system problem and Unknown status in search results (/showthread.php?tid=336)



SOLVED - Expiry system problem and Unknown status in search results - max - 06-13-2011

Hey there,

You can have the functionality of expired status by modifying the line 429 in Core/inc.ClassDocument.php like this:

Code:
$lc->setStatus(S_EXPIRED,"",$this->getOwner());

and line 434 :
Code:
$lc->verifyStatus(true,$this->getOwner());

This makes the entire expire system work.

To make the status display properly in search results, modify op/op.Search.php :

change
Code:
print "<td>".getOverallStatusText($lc->getStatus()). "</td>";
to:
Code:
$display_status=$lc->getStatus();
print "<td>".getOverallStatusText($display_status["status"]). "</td>";

Regards,
Mak.


RE: SOLVED - Expiry system problem and Unknown status in search results - steinm - 07-20-2011

I added this for the next release