From f37c3c6ac7c133abc53b73527f1e0000701eeddc Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 11 Jul 2017 11:22:07 -0400 Subject: RT# 76303 - fixed bug with tags not saving when selected --- httemplate/elements/checkboxes-table.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/checkboxes-table.html b/httemplate/elements/checkboxes-table.html index d3bbab430..96d130333 100644 --- a/httemplate/elements/checkboxes-table.html +++ b/httemplate/elements/checkboxes-table.html @@ -101,10 +101,19 @@ % % } % -% + +% ### use name sent to function else use target table and key. +% my $checkbox_name; +% if ($opt{'field'}) { $checkbox_name = $opt{'field'}; } else { $checkbox_name = "$target_pkey$targetnum"; } + +% ### use values sent to function rather than values in table to determine CHECKED if values are sent. +% my $values; +% if (ref $opt{'value'} eq ref {} ) { $values = $opt{'value'}; } +% else { foreach my $value ( split(/\,/, $opt{'value'}) ) { $values->{$value} = $value; } } +% if ($values->{$targetnum}) { $checked = "CHECKED"; } % my $color_col = $opt{'color_col'}; - VALUE="ON">
+ VALUE="<% $targetnum %>">
% if ( $opt{'target_link'} ) { % } -- cgit v1.2.1