[freeside-commits] freeside/httemplate/search inventory_item.html, 1.6, 1.6.4.1

Ivan,,, ivan at wavetail.420.am
Mon Mar 1 13:05:46 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv25984

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	inventory_item.html 
Log Message:
fix inventory item links to non-svc_acct services, RT#7010

Index: inventory_item.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/inventory_item.html,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -u -w -d -r1.6 -r1.6.4.1
--- inventory_item.html	8 Oct 2007 19:14:28 -0000	1.6
+++ inventory_item.html	1 Mar 2010 21:05:44 -0000	1.6.4.1
@@ -9,6 +9,7 @@
                                     'hashref' => { 'classnum' => $classnum },
                                     'select'  => join(', ',
                                         'inventory_item.*',
+                                        'part_svc.svcdb',
                                         'cust_main.custnum',
                                         FS::UI::Web::cust_sql_fields(),
                                       ),
@@ -103,7 +104,16 @@
 my $link = sub {
   my $inventory_item = shift;
   if ( $inventory_item->svcnum ) {
-    [ "${p}view/svc_acct.cgi?", 'svcnum' ];
+
+    #[ "${p}view/svc_acct.cgi?", 'svcnum' ];
+    my $url = svc_url(
+      'm'      => $m,
+      'action' => 'view',
+      #'svcdb'  => $inventory_item->cust_svc->part_svc->svcdb,
+      'svcdb'  => $inventory_item->svcdb, #we have it from the joined search
+      'query'  => '',
+    );
+    [ $url, 'svcnum' ];
   } else {
     '';
   }



More information about the freeside-commits mailing list