From 01b68978ff4c169f66194bbb2f212274cc436a83 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Fri, 30 Jan 2009 23:28:18 +0100 Subject: [PATCH] Fixed a crash when submitting a new code review and no full rights. --- src/IDF/Form/ReviewCreate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IDF/Form/ReviewCreate.php b/src/IDF/Form/ReviewCreate.php index 22b7b8d..6a901b5 100644 --- a/src/IDF/Form/ReviewCreate.php +++ b/src/IDF/Form/ReviewCreate.php @@ -169,6 +169,9 @@ class IDF_Form_ReviewCreate extends Pluf_Form $review->project = $this->project; $review->summary = $this->cleaned_data['summary']; $review->submitter = $this->user; + if (!isset($this->cleaned_data['status'])) { + $this->cleaned_data['status'] = 'New'; + } $review->status = IDF_Tag::add(trim($this->cleaned_data['status']), $this->project, 'Status'); $review->create(); // add the first patch