allura
修订版 | cb3ed48f0332026f1cf4bb8090dab589aa6fe2f3 (tree) |
---|---|
时间 | 2010-05-19 00:39:44 |
作者 | Jenny Steele <jsteele@geek...> |
Commiter | Jenny Steele |
[#401] Fixed failing save for ticket bins
@@ -539,12 +539,10 @@ class BinController(object): | ||
539 | 539 | require(has_artifact_access('write')) |
540 | 540 | if request.method != 'POST': |
541 | 541 | raise Exception('save_bin must be a POST request') |
542 | - bin = model.Bin() | |
542 | + bin = model.Bin(**post_data) | |
543 | 543 | bin.app_config_id = c.app.config._id |
544 | 544 | bin.custom_fields = dict() |
545 | 545 | globals = model.Globals.query.get(app_config_id=c.app.config._id) |
546 | - for k,v in post_data.iteritems(): | |
547 | - setattr(bin, k, v) | |
548 | 546 | redirect(request.referer) |
549 | 547 | |
550 | 548 | @with_trailing_slash |