[freeside-commits] freeside/httemplate/misc clone-cgp_rule.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sun Jun 6 19:39:17 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv2861/httemplate/misc
Added Files:
clone-cgp_rule.html
Log Message:
domain rules based on templates (rules from other domains), RT#7514
--- NEW FILE: clone-cgp_rule.html ---
% if ( $error ) {
% errorpage($error);
% } else {
<% $cgi->redirect($p. "browse/cgp_rule.html?svcnum=". $svcnum) %>
% }
<%init>
# :/ needs agent-virt so you can't futz with arbitrary rules
#die "access denied"
# unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service');
#untaint svcnum and clone
$cgi->param('svcnum') =~ /^(\d+)$/ || die "Illegal svcnum";
my $svcnum = $1;
$cgi->param('clone') =~ /^(\d+)$/ || die "Illegal clone";
my $clone = $1;
my @cgp_rule = qsearch('cgp_rule', { 'svcnum' => $clone } );
my $error = '';
foreach my $cgp_rule ( @cgp_rule ) {
$error = $cgp_rule->clone( $svcnum );
last if $error;
}
</%init>
More information about the freeside-commits
mailing list