From 2bc4e3714ed16977135a2329e881f860930f2513 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 2 Nov 2016 01:38:44 -0700 Subject: fixing default status --- system/admin/handlers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index e2309aa..e3d99cc 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -768,9 +768,10 @@ func adminPostListItem(p editor.Editable, t, status string) []byte { cid := fmt.Sprintf("%d", p.ContentID()) - if status == "public" { + switch status { + case "public", "": status = "" - } else { + default: status = "_" + status } -- cgit v1.2.3