summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-xhttemplate/edit/process/part_pkg.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi
index 5d9c2355b..e4cf45984 100755
--- a/httemplate/edit/process/part_pkg.cgi
+++ b/httemplate/edit/process/part_pkg.cgi
@@ -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 {