projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d7305
)
web/ticket.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 06:14:15 +0000
(14:14 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 06:14:15 +0000
(14:14 +0800)
web/ticket.php
patch
|
blob
|
history
diff --git
a/web/ticket.php
b/web/ticket.php
index
b02be35
..
0146667
100644
(file)
--- a/
web/ticket.php
+++ b/
web/ticket.php
@@
-261,8
+261,11
@@
if ($_SERVER['REQUEST_METHOD'] == 'POST')
foreach ($kill as $mid) {
$issue->dissocComponent($mid);
}
-
- $issue->addComment($_POST['comment']);
+
+ if (!empty($_POST['comment'])) {
+ $issue->addComment($_POST['comment']);
+ }
+
$issue->addEffort($_POST['spent'], $_POST['estimated']);
if (!count($error)) {