[freeside-commits] freeside/httemplate/edit/process part_event.html, 1.2, 1.3
Mark Wells
mark at wavetail.420.am
Wed Aug 31 22:13:11 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv1936/httemplate/edit/process
Modified Files:
part_event.html
Log Message:
svc_acct events for usage limits, #13202
Index: part_event.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/part_event.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- part_event.html 22 Nov 2010 02:52:30 -0000 1.2
+++ part_event.html 1 Sep 2011 05:13:09 -0000 1.3
@@ -81,8 +81,21 @@
length($actionfields{'reasonnum'}) == 0 ) {
return 'Reason required';
}
+ if ( $cgi->param('_initialize') ) {
+ $cgi->param('disabled', 'Y');
+ }
return '';
},
+ 'noerror_callback' => sub {
+ my ($cgi, $new) = @_;
+ if ( $cgi->param('_initialize') ) {
+ my $job = new FS::queue {
+ 'job' => 'FS::part_event::process_initialize'
+ };
+ my $error = $job->insert('eventpart' => $new->eventpart);
+ warn "error queueing job: $error\n" if $error; # can't do anything else
+ }
+ },
'agent_virt' => 1,
'agent_null_right' => 'Edit global billing events',
More information about the freeside-commits
mailing list