projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2b11588
)
fix inventory item links to non-svc_acct services, RT#7010
author
ivan
<ivan>
Mon, 1 Mar 2010 21:05:43 +0000
(21:05 +0000)
committer
ivan
<ivan>
Mon, 1 Mar 2010 21:05:43 +0000
(21:05 +0000)
httemplate/search/inventory_item.html
patch
|
blob
|
history
diff --git
a/httemplate/search/inventory_item.html
b/httemplate/search/inventory_item.html
index
3f0288b
..
55fef94
100644
(file)
--- a/
httemplate/search/inventory_item.html
+++ b/
httemplate/search/inventory_item.html
@@
-9,6
+9,7
@@
'hashref' => {},
'select' => join(', ',
'inventory_item.*',
'hashref' => {},
'select' => join(', ',
'inventory_item.*',
+ 'part_svc.svcdb',
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
),
'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 ) {
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 {
'';
}
} else {
'';
}