[freeside-commits] freeside/httemplate/edit/process part_pkg.cgi, 1.22, 1.23

Jeff Finucane,420,, jeff at wavetail.420.am
Wed Nov 28 12:19:33 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv6973/process

Modified Files:
	part_pkg.cgi 
Log Message:
better select multiple, discourage creation of packages no agent can sell

Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/part_pkg.cgi,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- part_pkg.cgi	13 Oct 2007 17:33:48 -0000	1.22
+++ part_pkg.cgi	28 Nov 2007 20:19:31 -0000	1.23
@@ -36,6 +36,11 @@
 %  /^(\d+)$/;
 %  push @agents, $1 if $1;
 %}
+%$error = "At least one agent type must be specified."
+%  unless( scalar(@agents) ||
+%          $cgi->param('clone') && $cgi->param('clone') ~= /^\d+$/ ||
+%          !pkgpart && $conf->exists('agent-defaultpkg')
+%        );
 %
 %my $new = new FS::part_pkg ( {
 %  map {



More information about the freeside-commits mailing list