mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 22:47:19 +00:00
fix approving of documents
The variable $status was overridden in the the status log if logged in as admin. This causse problems whenever was allow to review/approve documents. All other users where not affected because the don't see the status log
This commit is contained in:
parent
7ea3c9a73a
commit
e36d4c0094
|
@ -401,11 +401,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
if($user->isAdmin()) {
|
||||
$this->contentHeading(getMLText("status"));
|
||||
$this->contentContainerStart();
|
||||
$status = $latestContent->getStatusLog();
|
||||
$statuslog = $latestContent->getStatusLog();
|
||||
echo "<table class=\"table table-condensed\"><thead>";
|
||||
echo "<th>".getMLText('date')."</th><th>".getMLText('status')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>\n";
|
||||
echo "</thead><tbody>";
|
||||
foreach($status as $entry) {
|
||||
foreach($statuslog as $entry) {
|
||||
if($suser = $dms->getUser($entry['userID']))
|
||||
$fullname = $suser->getFullName();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user