Added issue 14, ability to change the interest status.

The interest status or watch list is now shown in the list of the issues
and can be changed by clicking on the star in front of the title of an
issue when looking at an issue.
This commit is contained in:
Loic d'Anterroches
2008-08-12 12:46:09 +02:00
parent b2356bd157
commit 1a030ea4ed
10 changed files with 227 additions and 10 deletions

View File

@@ -220,9 +220,6 @@ class IDF_Form_IssueCreate extends Pluf_Form
foreach ($tags as $tag) {
$issue->setAssoc($tag);
}
$issue->setAssoc($this->user); // the user is
// automatically
// interested.
// add the first comment
$comment = new IDF_IssueComment();
$comment->issue = $issue;

View File

@@ -253,6 +253,7 @@ class IDF_Form_IssueUpdate extends IDF_Form_IssueCreate
$comment->changes = $changes;
$comment->create();
$this->issue->update();
$this->issue->setAssoc($this->user); // interested user.
return $this->issue;
}
throw new Exception(__('Cannot save the model from an invalid form.'));