[freeside-commits] freeside/httemplate/edit/process/elements
process.html, 1.7, 1.8
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Jan 19 08:31:23 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process/elements
In directory wavetail:/tmp/cvs-serv27632/httemplate/edit/process/elements
Modified Files:
process.html
Log Message:
no password in html source on employee edit
Index: process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/elements/process.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- process.html 29 Dec 2006 08:51:32 -0000 1.7
+++ process.html 19 Jan 2007 16:31:21 -0000 1.8
@@ -24,6 +24,8 @@
% # 'edit_ext' => 'html', #defaults to 'html', you might want 'cgi' while the
% # #naming is still inconsistent
% #
+% # 'copy_on_empty' => [ old_field_name, another_old_field, ... ],
+% #
% # 'process_m2m' => { 'link_table' => 'link_table_name',
% # 'target_table' => 'target_table_name',
% # },
@@ -55,6 +57,13 @@
% } @$fields
% } );
%
+% if ($old && scalar($opt{'copy_on_empty'})) {
+% foreach my $field (@{$opt{'copy_on_empty'}}) {
+% $new->set($field, $old->get($field))
+% unless scalar($cgi->param($field));
+% }
+% }
+%
% my $error;
% if ( $pkeyvalue ) {
% $error = $new->replace($old);
More information about the freeside-commits
mailing list