projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7b1a57
)
kludge to clone customer packages you otherwise couldn't see, RT#4854
author
ivan
<ivan>
Tue, 17 Feb 2009 07:40:01 +0000
(07:40 +0000)
committer
ivan
<ivan>
Tue, 17 Feb 2009 07:40:01 +0000
(07:40 +0000)
httemplate/edit/part_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/part_pkg.cgi
b/httemplate/edit/part_pkg.cgi
index
2b1bab6
..
d347995
100755
(executable)
--- a/
httemplate/edit/part_pkg.cgi
+++ b/
httemplate/edit/part_pkg.cgi
@@
-5,8
+5,7
@@
'agent_virt' => 1,
'agent_null_right' => $edit_global,
'agent_virt' => 1,
'agent_null_right' => $edit_global,
- 'agent_clone_extra_sql' => FS::part_pkg->curuser_pkgs_sql,
-
+ 'agent_clone_extra_sql' => $agent_clone_extra_sql,
#'viewall_dir' => 'browse',
'viewall_url' => $p.'browse/part_pkg.cgi',
'html_init' => include('/elements/init_overlib.html').
#'viewall_dir' => 'browse',
'viewall_url' => $p.'browse/part_pkg.cgi',
'html_init' => include('/elements/init_overlib.html').
@@
-207,6
+206,12
@@
my $begin_callback = sub {
my $disabled_type = $acl_edit_either ? 'checkbox' : 'hidden';
my $disabled_type = $acl_edit_either ? 'checkbox' : 'hidden';
+my $agent_clone_extra_sql =
+ ' ( '. FS::part_pkg->curuser_pkgs_sql.
+ #kludge to clone custom customer packages you otherwise couldn't see
+ " OR ( part_pkg.disabled = 'Y' AND part_pkg.comment LIKE '(CUSTOM)' ) ".
+ ' ) ';
+
my $conf = new FS::Conf;
my $taxproducts = $conf->exists('enable_taxproducts');
my $conf = new FS::Conf;
my $taxproducts = $conf->exists('enable_taxproducts');