[freeside-commits] branch master updated. 4d873df8a99f87a6427a58ccd3e69b1c9474f44a

Christopher Burger burgerc at freeside.biz
Thu Dec 21 15:17:20 PST 2017


The branch, master has been updated
       via  4d873df8a99f87a6427a58ccd3e69b1c9474f44a (commit)
      from  b401f6d9ec5b5cd5f19ecd46a678ad8fea0ede6d (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 4d873df8a99f87a6427a58ccd3e69b1c9474f44a
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 25568745d..113f611e1 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -871,7 +871,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 = {};
 
@@ -914,7 +916,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