[freeside-commits] freeside/httemplate/edit part_pkg.cgi, 1.90, 1.91
Ivan,,,
ivan at wavetail.420.am
Thu Jun 12 14:53:34 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv5562/httemplate/edit
Modified Files:
part_pkg.cgi
Log Message:
fix cloning w/new package editor
Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_pkg.cgi,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -r1.90 -r1.91
--- part_pkg.cgi 16 Apr 2008 20:34:41 -0000 1.90
+++ part_pkg.cgi 12 Jun 2008 21:53:32 -0000 1.91
@@ -35,8 +35,14 @@
},
'fields' => [
- { field=>'clone', type=>'hidden' },
- { field=>'pkgnum', type=>'hidden' },
+ { field=>'clone', type=>'hidden',
+ curr_value_callback =>
+ sub { shift->param('clone') },
+ },
+ { field=>'pkgnum', type=>'hidden',
+ curr_value_callback =>
+ sub { shift->param('pkgnum') },
+ },
{ type => 'columnstart' },
@@ -149,6 +155,7 @@
#XXX
# - tr-part_pkg_freq: month_increments_only (from price plans)
# - test cloning
+# - test errors cloning
# - test custom pricing
# - move the selectlayer divs away from lame layer_callback
@@ -164,9 +171,10 @@
my %options = ();
my $recur_disabled = 1;
my $error_callback = sub {
- my($cgi, $object, $fields) = @_;
+ my($cgi, $object, $fields, $opt ) = @_;
(@agent_type) = $cgi->param('agent_type');
$tax_override = $cgi->param('tax_override');
+ $opt->{action} = 'Custom' if $cgi->param('clone');
$clone_part_pkg= qsearchs('part_pkg', { 'pkgpart' => $cgi->param('clone') } );
$recur_disabled = $cgi->param('freq') ? 0 : 1;
More information about the freeside-commits
mailing list