summaryrefslogtreecommitdiff
path: root/httemplate/search/inventory_item.html
diff options
context:
space:
mode:
authorivan <ivan>2010-03-01 21:05:43 +0000
committerivan <ivan>2010-03-01 21:05:43 +0000
commit4cbd1300a45200f614fa0bcdee40abbfd5e28ff8 (patch)
tree7706be928e7b340b515c524d23952091fa207da7 /httemplate/search/inventory_item.html
parent2b11588f2aa418719decb2ef501b1762cede4385 (diff)
fix inventory item links to non-svc_acct services, RT#7010
Diffstat (limited to 'httemplate/search/inventory_item.html')
-rw-r--r--httemplate/search/inventory_item.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/httemplate/search/inventory_item.html b/httemplate/search/inventory_item.html
index 3f0288b6c..55fef9432 100644
--- a/httemplate/search/inventory_item.html
+++ b/httemplate/search/inventory_item.html
@@ -9,6 +9,7 @@
'hashref' => {},
'select' => join(', ',
'inventory_item.*',
+ 'part_svc.svcdb',
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
),
@@ -103,7 +104,16 @@ my $count_query =
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 {
'';
}