From e7a70dc69fa4a16fb7b0bb1af617a0c19c09a476 Mon Sep 17 00:00:00 2001 From: totoro Date: Tue, 2 May 2017 10:42:08 +0900 Subject: [PATCH] for checkbox change web arg value to true instead of column name. This is better for parsing value --- view/view_table_renderer.anubis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/view_table_renderer.anubis b/view/view_table_renderer.anubis index 57406fd..9814b49 100644 --- a/view/view_table_renderer.anubis +++ b/view/view_table_renderer.anubis @@ -428,7 +428,7 @@ public define List(CXM_Form_Field) with id = if txt_editor is { none then "", rich_editor then c_name+"_editor"}, [text_area([],label(_T(s_name), no_help), html_Id(id), wan(c_name), init(not_null_String(value)), narrow, (Int)5, mandatory), help_line(help, _T)], boolean(s_name, c_name, value, help) then - [checkboxr([],label(_T(s_name), no_help), html_Id(""), wan(c_name), wav(c_name),value, mandatory), help_line(help, _T)], + [checkboxr([],label(_T(s_name), no_help), html_Id(""), wan(c_name), wav("true"),value, mandatory), help_line(help, _T)], integer(s_name, c_name, value, help) then [input(label(_T(s_name), no_help), wan(c_name), init(abs_to_decimal(value)), small, mandatory), help_line(help, _T)], float(s_name, c_name, value, help) then @@ -624,7 +624,7 @@ public define List(CXM_Form_Field) with id = if txt_editor is { none then "", rich_editor then c_name+"_editor"}, [text_area([],no_label, html_Id(id), wan(c_name), init(not_null_String(value)), narrow, (Int)5, mandatory), help_line(help, _T)], boolean(s_name, c_name, value, help) then - [checkboxr([],no_label, html_Id(""), wan(c_name), wav(c_name),value, mandatory), help_line(help, _T)], + [checkboxr([],no_label, html_Id(""), wan(c_name), wav("true"),value, mandatory), help_line(help, _T)], integer(s_name, c_name, value, help) then [input(no_label, wan(c_name), init(abs_to_decimal(value)), small, mandatory), help_line(help, _T)], float(s_name, c_name, value, help) then -- libgit2 0.21.4