[freeside-commits] freeside/httemplate/edit/process part_pkg.cgi, 1.18.2.4, 1.18.2.5

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


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

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	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.18.2.4
retrieving revision 1.18.2.5
diff -u -d -r1.18.2.4 -r1.18.2.5
--- part_pkg.cgi	13 Oct 2007 17:19:42 -0000	1.18.2.4
+++ part_pkg.cgi	28 Nov 2007 20:18:34 -0000	1.18.2.5
@@ -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