projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
cust_main.pm
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
e4766f5
..
1ed1d4a
100644
(file)
--- a/
FS/FS/cust_main.pm
+++ b/
FS/FS/cust_main.pm
@@
-2139,8
+2139,8
@@
Returns all notes (see L<FS::cust_main_note>) for this customer.
sub notes {
my($self,$orderby_classnum) = (shift,shift);
sub notes {
my($self,$orderby_classnum) = (shift,shift);
- my $orderby = "
_DATE
DESC";
- $orderby = "
CLASSNUM
ASC, $orderby" if $orderby_classnum;
+ my $orderby = "
sticky DESC, _date
DESC";
+ $orderby = "
classnum
ASC, $orderby" if $orderby_classnum;
qsearch( 'cust_main_note',
{ 'custnum' => $self->custnum },
'',
qsearch( 'cust_main_note',
{ 'custnum' => $self->custnum },
'',