[freeside-commits] freeside/httemplate/edit access_group.html, 1.5, 1.6 cgp_rule.html, 1.5, 1.6 payment_gateway.html, 1.14, 1.15 rate_detail.html, 1.8, 1.9
Ivan,,,
ivan at wavetail.420.am
Thu Sep 22 15:06:01 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv1743/httemplate/edit
Modified Files:
access_group.html cgp_rule.html payment_gateway.html
rate_detail.html
Log Message:
random cleanups
Index: cgp_rule.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cgp_rule.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- cgp_rule.html 7 Jun 2010 00:10:17 -0000 1.5
+++ cgp_rule.html 22 Sep 2011 22:05:59 -0000 1.6
@@ -59,7 +59,7 @@
my $num = $1;
if ( grep $cgi->param("ruleconditionnum$num$_"), @gfields ) {
my $x = new FS::cgp_rule_condition {
- 'ruleconditionnum' => $cgi->param("ruleconditionnum$num"),
+ 'ruleconditionnum' => scalar($cgi->param("ruleconditionnum$num")),
map { $_ => scalar($cgi->param("ruleconditionnum${num}_$_")) } @fields,
};
$x;
@@ -84,7 +84,7 @@
my $num = $1;
if ( grep $cgi->param("ruleactionnum$num$_"), @gfields ) {
my $x = new FS::cgp_rule_action {
- 'ruleactionnum' => $cgi->param("ruleactionnum$num"),
+ 'ruleactionnum' => scalar($cgi->param("ruleactionnum$num")),
map { $_ => scalar($cgi->param("ruleactionnum${num}_$_")) } @fields,
};
$x;
Index: payment_gateway.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/payment_gateway.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -d -r1.14 -r1.15
--- payment_gateway.html 21 Dec 2010 09:12:45 -0000 1.14
+++ payment_gateway.html 22 Sep 2011 22:05:59 -0000 1.15
@@ -5,7 +5,7 @@
'fields' => $fields,
'field_callback' => $field_callback,
'labels' => {
- 'gatewaynum' => 'Gateway #',
+ 'gatewaynum' => 'Gateway',
'gateway_module' => 'Gateway',
'gateway_username' => 'Username',
'gateway_password' => 'Password',
Index: access_group.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/access_group.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- access_group.html 30 Nov 2008 23:26:44 -0000 1.5
+++ access_group.html 22 Sep 2011 22:05:59 -0000 1.6
@@ -18,6 +18,9 @@
</%once>
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
my $html_bottom_sub = sub {
my $access_group = shift;
Index: rate_detail.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/rate_detail.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- rate_detail.html 13 Apr 2011 00:35:43 -0000 1.8
+++ rate_detail.html 22 Sep 2011 22:05:59 -0000 1.9
@@ -52,10 +52,10 @@
],
'new_hashref_callback' => sub {
- { ratenum => $cgi->param('ratenum'),
- dest_regionnum => $cgi->param('dest_regionnum'),
- ratetimenum => $cgi->param('ratetimenum'),
- cdrtypenum => $cgi->param('cdrtypenum'),
+ { ratenum => scalar($cgi->param('ratenum')),
+ dest_regionnum => scalar($cgi->param('dest_regionnum')),
+ ratetimenum => scalar($cgi->param('ratetimenum')),
+ cdrtypenum => scalar($cgi->param('cdrtypenum')),
min_included => 0,
conn_charge => 0,
}
More information about the freeside-commits
mailing list