projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add condition_sql optimization to "Customer has a referring customer with uncancelled...
[freeside.git]
/
FS
/
FS
/
hardware_class.pm
diff --git
a/FS/FS/hardware_class.pm
b/FS/FS/hardware_class.pm
index
073a97f
..
791653b
100644
(file)
--- a/
FS/FS/hardware_class.pm
+++ b/
FS/FS/hardware_class.pm
@@
-112,7
+112,11
@@
Returns all L<FS::hardware_type> objects belonging to this class.
sub hardware_type {
my $self = shift;
- return qsearch('hardware_type', { 'classnum' => $self->classnum });
+ qsearch({
+ table => 'hardware_type',
+ hashref => { 'classnum' => $self->classnum },
+ order_by=> 'ORDER BY model, revision',
+ })
}
=back