diff --git a/application/modules/requests/views/scripts/index/index.phtml b/application/modules/requests/views/scripts/index/index.phtml index e0cf87363b7db29657a03f57b3d8ae0af3e6c00a..74d8946760c080efa76adf6b87a96285a26331b9 100644 --- a/application/modules/requests/views/scripts/index/index.phtml +++ b/application/modules/requests/views/scripts/index/index.phtml @@ -132,14 +132,16 @@ $action = $requestData['action']; $comments = $requestData['comments']; $viewTime = $requestData['viewTime']; - $decisions = array('_null' => '--Decision--') + $action->getResultStatusStrings($request, $this->user); - $vote = '_null'; - if ($requestData['vote']) { - if ($requestData['vote']->getApprovalAction() == $action->getId()) { - $vote = $requestData['vote']->getVote(); - } else { - $decisions['_null'] = 'PREVOTE: ' . $requestData['vote']->getVote(); - } + if ($request->isSubmitterAttentionRequired()) { + $decisions = array('_null' => '--Decision--') + $action->getResultStatusStrings($request, $this->user); + $vote = '_null'; + if ($requestData['vote']) { + if ($requestData['vote']->getApprovalAction() == $action->getId()) { + $vote = $requestData['vote']->getVote(); + } else { + $decisions['_null'] = 'PREVOTE: ' . $requestData['vote']->getVote(); + } + } } ?> <tr <?php echo (++$row % 2 ? 'class="odd"' : ''); ?>> @@ -149,7 +151,7 @@ </td> <td><?php echo htmlentities($originalCourse->getCollege(), NULL, 'UTF-8'); ?></td> <td><?php echo htmlentities($request->getType(), NULL, 'UTF-8'); ?></td> - <td><?php echo htmlentities($action->getCurrentApprovalBody(), NULL, 'UTF-8'); ?></td> + <td><?php if($action) { echo htmlentities($action->getCurrentApprovalBody(), NULL, 'UTF-8'); } ?></td> <td> <?php if ($request->isSubmitterAttentionRequired()) {