[freeside-commits] freeside/FS/FS part_pkg.pm,1.97.2.5,1.97.2.6

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


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

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	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.97.2.5
retrieving revision 1.97.2.6
diff -u -w -d -r1.97.2.5 -r1.97.2.6
--- part_pkg.pm	30 Jul 2010 05:50:24 -0000	1.97.2.5
+++ part_pkg.pm	10 Oct 2010 20:52:38 -0000	1.97.2.6
@@ -907,6 +907,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