aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/web/web.py
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2010-09-06 19:04:19 -0400
committerChris Ball <cjb@laptop.org>2010-09-06 19:22:27 -0400
commitc539bb1fe92f7836d1eb0b9cbb969e1195ca385b (patch)
tree61b8866855f55c6185fcb8ec9f9c98df83bd3247 /interfaces/web/web.py
parentb74747aee28dd51d067920c1a8d16cc0b192e8f3 (diff)
downloadbugseverywhere-c539bb1fe92f7836d1eb0b9cbb969e1195ca385b.tar.gz
cfbe: API: fix editing a bug's target
Diffstat (limited to 'interfaces/web/web.py')
-rw-r--r--interfaces/web/web.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/interfaces/web/web.py b/interfaces/web/web.py
index b04c6e7..2cfdd04 100644
--- a/interfaces/web/web.py
+++ b/interfaces/web/web.py
@@ -7,7 +7,7 @@ import cherrypy
from libbe import storage
from libbe import bugdir
from libbe.command.depend import get_blocked_by, get_blocks
-from libbe.command.target import bug_from_target_summary, bug_target
+from libbe.command.target import add_target, bug_from_target_summary, bug_target
from libbe.command.util import bug_comment_from_user_id
from libbe.storage.util import settings_object
@@ -180,10 +180,12 @@ class WebInterface:
bug.summary = summary
else:
bug.status = status if status != 'None' else None
- bug.target = target if target != 'None' else None
bug.assigned = assignee if assignee != 'None' else None
bug.severity = severity if severity != 'None' else None
+ if target:
+ add_target(self.bd, bug, target)
+
bug.save()
raise cherrypy.HTTPRedirect(