projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5967ae
)
better select multiple, discourage creation of packages no agent can sell
author
jeff
<jeff>
Wed, 28 Nov 2007 20:19:31 +0000
(20:19 +0000)
committer
jeff
<jeff>
Wed, 28 Nov 2007 20:19:31 +0000
(20:19 +0000)
httemplate/edit/part_pkg.cgi
patch
|
blob
|
history
httemplate/edit/process/part_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/part_pkg.cgi
b/httemplate/edit/part_pkg.cgi
index
ab2407b
..
410c81d
100755
(executable)
--- a/
httemplate/edit/part_pkg.cgi
+++ b/
httemplate/edit/part_pkg.cgi
@@
-122,8
+122,8
@@
Line-item revenue recognition
'table' => 'agent_type',
'name_col' => 'atype',
'value' => \@agent_type,
'table' => 'agent_type',
'name_col' => 'atype',
'value' => \@agent_type,
- '
empty_label' => 'select agent types
',
- 'element_etc' => '
multiple
size="10"',
+ '
multiple' => '1
',
+ 'element_etc' => 'size="10"',
)
%>
</TD>
)
%>
</TD>
diff --git
a/httemplate/edit/process/part_pkg.cgi
b/httemplate/edit/process/part_pkg.cgi
index
5d9c235
..
e4cf459
100755
(executable)
--- a/
httemplate/edit/process/part_pkg.cgi
+++ b/
httemplate/edit/process/part_pkg.cgi
@@
-36,6
+36,11
@@
% /^(\d+)$/;
% push @agents, $1 if $1;
%}
% /^(\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 {
%
%my $new = new FS::part_pkg ( {
% map {