# HG changeset patch # User bsw # Date 1632740970 -7200 # Node ID a63c2dacf619e3ccd2ee8bd2078ec5966bccb9fc # Parent 9b8dc1828f1f0a0004b1389db0725edd6702675f If only one policy is available, choose it automatically diff -r 9b8dc1828f1f -r a63c2dacf619 app/main/draft/new.lua --- a/app/main/draft/new.lua Mon Sep 27 13:07:56 2021 +0200 +++ b/app/main/draft/new.lua Mon Sep 27 13:09:30 2021 +0200 @@ -128,7 +128,7 @@ -- -------- PREVIEW if param.get("preview") and slot.get_content("error") == "" then ui.sectionRow( function() - if not issue and not initiative then + if not issue and not initiative and #area.allowed_policies > 1 then ui.container { content = policy and policy.name or "" } end if param.get("free_timing") then