From 7322a51f3e76656543929d89035d475c51d04e06 Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 6 May 2017 09:01:58 +0900 Subject: [PATCH] Change the way for reading the boolean from web arg. Now read correctly the boolean with a value to false. --- calexium_lib | 2 +- src/generation/web_args.anubis | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calexium_lib b/calexium_lib index 3a2758b..647c64d 160000 --- a/calexium_lib +++ b/calexium_lib @@ -1 +1 @@ -Subproject commit 3a2758b69ccb9499f35eec40cc72b2cae14998fc +Subproject commit 647c64d2796d0c141d54b63c306ed534256acd46 diff --git a/src/generation/web_args.anubis b/src/generation/web_args.anubis index 5263550..85ca053 100644 --- a/src/generation/web_args.anubis +++ b/src/generation/web_args.anubis @@ -107,7 +107,7 @@ public define String //anubis(_T) then "constant_byte_array(0,0)", p_key then "[]", boolean_field then - "if get_mb_Bool(lwa, __prefix__+\""+name+"\") is {failure then [], success("+name+") then [field(\""+name+"\", bind_Bool(\":v_"+name+"\", "+name+"))] }", + "[field(\""+name+"\", bind_Bool(\":v_"+name+"\", get_Bool(lwa, __prefix__+\""+name+"\")))]", date_field(attrs) then if attrs = none then "if get_DB_date(lwa, __prefix__+\""+name+"\") is {failure then [], success("+name+") then [field(\""+name+"\", bind_Date(\":v_"+name+"\", "+name+"))] }" -- libgit2 0.21.4