Added a warning when adding a comment to a closed issue.

The warning is only displayed for the simple users.
This commit is contained in:
Loic d'Anterroches
2008-08-13 21:20:47 +02:00
parent 0d4a31c086
commit a8db15d1e5
3 changed files with 6 additions and 0 deletions

View File

@@ -237,6 +237,7 @@ class IDF_Views_Issue
$title = Pluf_Template::markSafe(sprintf(__('Issue <a href="%s">%d</a>: %s'), $url, $issue->id, $issue->summary));
$form = false; // The form is available only if logged in.
$starred = false;
$closed = in_array($issue->status, $prj->getTagIdsByStatus('closed'));
if (!$request->user->isAnonymous()) {
$starred = Pluf_Model_InArray($request->user, $issue->get_interested_list());
$params = array(
@@ -300,6 +301,7 @@ class IDF_Views_Issue
'form' => $form,
'starred' => $starred,
'page_title' => $title,
'closed' => $closed,
),
$arrays),
$request);