Skip to content

Commit

Permalink
Fix BooleanParameter default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Grubb committed Sep 1, 2012
1 parent e8b16a6 commit 88f7f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/web/builder.py
Expand Up @@ -180,7 +180,7 @@ def buildForceContextForField(req, default_props, sch, field):
default = field.choices[0]

default = req.args.get(pname, [default])[0]
if field.type=="bool":
if "bool" in field.type:
default_props[pname] = "checked" if default else ""
else:
# filter out unicode chars, and html stuff
Expand Down

0 comments on commit 88f7f17

Please sign in to comment.