Hello,
The following issue has been updated:
836 - Error when entering issues as non-privileged user
Project: Indefero
Status: New
Reported by: Michael B.
URL:
http://projects.ceondo.com/p/indefero/issues/836/
Labels:
Type:Defect
Priority:Medium
Comments (last first):
# By Michael B., Feb 26, 2013:
I made a temporary fix, which seems to work.
Not sure whether this is the right way to do, but better than nothing, I guess.
diff --git a/src/IDF/Form/IssueCreate.php b/src/IDF/Form/IssueCreate.php
index d8f3244..fdaf623 100644
--- a/src/IDF/Form/IssueCreate.php
+++ b/src/IDF/Form/IssueCreate.php
@@ -374,6 +374,7 @@ class IDF_Form_IssueCreate extends Pluf_Form
$issue->status = new IDF_Tag($_t[0]); // first one is the default
$issue->owner = null;
}
+ if ( ! array_key_exists('due_dtime', $this->cleaned_data)) $this->cleaned_data['due_dtime'] = NULL;
$issue->due_dtime = $this->cleaned_data['due_dtime'];
$issue->summary = trim($this->cleaned_data['summary']);
$issue->create();
# By Michael B., Feb 26, 2013: