diff options
| author | Mark Wells <mark@freeside.biz> | 2013-03-07 14:45:13 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2013-03-07 14:45:13 -0800 |
| commit | 788f67e1d0a83e5554273dc946d80f5badccda4c (patch) | |
| tree | bed42531e52c62a35e35c765c144cc7fc6837e37 /httemplate/misc/macinventory.cgi | |
| parent | f80829f3cee324b94974bdf2b2d7682e411715b9 (diff) | |
| parent | e07eba0d44fbe13505c3df373fd7d29515b74fec (diff) | |
Merge branch 'FREESIDE_2_3_BRANCH' of git.freeside.biz:/home/git/freeside into 2.3
Diffstat (limited to 'httemplate/misc/macinventory.cgi')
| -rw-r--r-- | httemplate/misc/macinventory.cgi | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/httemplate/misc/macinventory.cgi b/httemplate/misc/macinventory.cgi index b07da9726..7ed5c6607 100644 --- a/httemplate/misc/macinventory.cgi +++ b/httemplate/misc/macinventory.cgi @@ -13,13 +13,8 @@ die "unknown devicepart $devicepart" unless $part_device; my $inventory_class = $part_device->inventory_class; die "devicepart $devicepart has no inventory" unless $inventory_class; -my @inventory_item = +my @macs = + map $_->item, qsearch('inventory_item', { 'classnum' => $inventory_class->classnum } ); -my @macs; - -foreach my $inventory_item ( @inventory_item ) { - push @macs, $inventory_item->item; -} - </%init> |
