[freeside-commits] freeside/FS/FS part_pkg.pm,1.109,1.110

Ivan,,, ivan at wavetail.420.am
Sun Oct 10 13:52:39 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv8587/FS/FS

Modified Files:
	part_pkg.pm 
Log Message:
simple protection against selecting and using package add-ons that point to the same package.  (still need to detect and break more complex self-referential loops)

Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -w -d -r1.109 -r1.110
--- part_pkg.pm	23 Sep 2010 21:27:36 -0000	1.109
+++ part_pkg.pm	10 Oct 2010 20:52:36 -0000	1.110
@@ -941,6 +941,8 @@
   qsearch({ table    => 'part_pkg_link',
             hashref  => { 'src_pkgpart' => $self->pkgpart,
                           'link_type'   => $type,
+                          #protection against infinite recursive links
+                          'dst_pkgpart' => { op=>'!=', $self->pkgpart },
                         },
             order_by => "ORDER BY hidden",
          });



More information about the freeside-commits mailing list