one-time charge enhancements
[freeside.git] / httemplate / edit / process / cust_main_note.cgi
index b94d227..8b9105b 100755 (executable)
@@ -4,7 +4,7 @@
 %  or die "Illegal custnum: ". $cgi->param('custnum');
 %my $custnum = $1;
 %
-%$cgi->param('notenum') =~ /^(\d+)$/
+%$cgi->param('notenum') =~ /^(\d*)$/
 %  or die "Illegal notenum: ". $cgi->param('notenum');
 %my $notenum = $1;
 %
 %    
 <% header('Note ' . ($notenum ? 'updated' : 'added') ) %>
     <SCRIPT TYPE="text/javascript">
-      window.top.location.reload();
+      parent.cust_main_notes.location.reload();
+      try{parent.cust_main_notes.cClick()}
+      catch(err){}
+      try{parent.cClick()}
+      catch(err){}
     </SCRIPT>
-
     </BODY></HTML>
 %
 %