mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 11:02:41 +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()) {
|
if($user->isAdmin()) {
|
||||||
$this->contentHeading(getMLText("status"));
|
$this->contentHeading(getMLText("status"));
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
$status = $latestContent->getStatusLog();
|
$statuslog = $latestContent->getStatusLog();
|
||||||
echo "<table class=\"table table-condensed\"><thead>";
|
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 "<th>".getMLText('date')."</th><th>".getMLText('status')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>\n";
|
||||||
echo "</thead><tbody>";
|
echo "</thead><tbody>";
|
||||||
foreach($status as $entry) {
|
foreach($statuslog as $entry) {
|
||||||
if($suser = $dms->getUser($entry['userID']))
|
if($suser = $dms->getUser($entry['userID']))
|
||||||
$fullname = $suser->getFullName();
|
$fullname = $suser->getFullName();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user