Correct check of published boolean

This commit is contained in:
Jeff Hodges
2015-08-30 15:51:25 -07:00
committed by Bjørn Erik Pedersen
parent 311593bff0
commit 49fe04c0bd
2 changed files with 31 additions and 1 deletions

View File

@@ -514,7 +514,7 @@ func (p *Page) update(f interface{}) error {
*draft = cast.ToBool(v)
case "published": // Intentionally undocumented
published = new(bool)
*published = !cast.ToBool(v)
*published = cast.ToBool(v)
case "layout":
p.layout = cast.ToString(v)
case "markup":