[freeside-commits] freeside/FS/FS svc_acct.pm,1.201,1.202

Ivan,,, ivan at wavetail.420.am
Wed Aug 9 03:47:20 PDT 2006


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv13115/FS/FS

Modified Files:
	svc_acct.pm 
Log Message:
self-service interface: add proper password changer and prevent "Setup my services" provisioner from showing broken links for services not handled yet

Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.201
retrieving revision 1.202
diff -u -d -r1.201 -r1.202
--- svc_acct.pm	6 Aug 2006 20:21:32 -0000	1.201
+++ svc_acct.pm	9 Aug 2006 10:47:18 -0000	1.202
@@ -484,6 +484,11 @@
   my $error;
   warn "$me replacing $old with $new\n" if $DEBUG;
 
+  # We absolutely have to have an old vs. new record to make this work.
+  if (!defined($old)) {
+    $old = qsearchs( 'svc_acct', { 'svcnum' => $new->svcnum } );
+  }
+
   return "can't modify system account" if $old->_check_system;
 
   {



More information about the freeside-commits mailing list