In standard, the fact that some file is locked is only visible in document view (of the locked file), which is not very usable.
This modification adds an icon of locked file in folder view and in the "title text" is the lock owner name (see "locked_file_preview" - [ATTACHMENT NOT FOUND] ).
To implement modification:
This modification adds an icon of locked file in folder view and in the "title text" is the lock owner name (see "locked_file_preview" - [ATTACHMENT NOT FOUND] ).
To implement modification:
- copy attached lock.png to out/images : [ATTACHMENT NOT FOUND]
- add new text item ("lock_by") to language file:
[ATTACHMENT NOT FOUND]PHP Code:$text["lock_by"] = "Locked by";
- apply the patch to file out/out.ViewFolder.php:
After line 125 ($status = $latestContent->getStatus();) , add line:
Change line 136 (print "<td>".getOverallStatusText($status["status"])."</td>";) to:PHP Code:$doc_obj = getDocument($docID);
[ATTACHMENT NOT FOUND]PHP Code:print "<td>";
if ( $doc_obj->isLocked() ) {
print "<img src=\"".UI::getImgPath("lock.png")."\" title=\"". getMLText("lock_by").": ".$doc_obj->getLockingUser()->getFullName()."\"> ";
}
print getOverallStatusText($status["status"])."</td>";