[freeside-commits] branch FREESIDE_3_BRANCH updated. 2d2036a7e6ccab84985b3a7b28a7a9f2e788b313
Christopher Burger
burgerc at freeside.biz
Wed Dec 27 12:12:23 PST 2017
The branch, FREESIDE_3_BRANCH has been updated
via 2d2036a7e6ccab84985b3a7b28a7a9f2e788b313 (commit)
from b94c1d5b5d8179b7bcc57ff5c352fa7039424001 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2d2036a7e6ccab84985b3a7b28a7a9f2e788b313
Author: Christopher Burger <burgerc at freeside.biz>
Date: Thu Dec 21 18:16:33 2017 -0500
RT# 76878 - Fixed installer checkbox to be sticky on error.
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 099b0a57e..3826f9752 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -836,7 +836,9 @@ my $pkey = dbdef->table($table)->primary_key; #? $opt{'primary_key'} ||
my $fields = $opt{'fields'}
#|| [ grep { $_ ne $pkey } dbdef->table($table)->columns ];
|| [ grep { $_ ne $pkey } fields($table) ];
-#my @actualfields = map { ref($_) ? $_->{'field'} : $_ } @$fields;
+my @actualfields = map { ref($_) ? $_->{'field'} : $_ } @$fields;
+
+push @actualfields, $pkey;
my $js_form_validate = {};
@@ -879,7 +881,7 @@ if ( $opt{'embed'} ) {
$mode = 'error';
$object = $class->new( {
- map { $_ => scalar($cgi->param($_)) } fields($table)
+ map { $_ => scalar($cgi->param($_)) } @actualfields
});
&{$opt{'error_callback'}}( $cgi, $object, $fields, \%opt )
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/elements/edit.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list