Skip to content

Commit

Permalink
fixed AssetReport: "Order the results by" issues (#12227)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbcj committed Aug 26, 2011
1 parent 073093e commit 8ae2457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -2,6 +2,7 @@
- fixed #12225: Stock asset, multiple instances on a page
- fixed #12229: Indexed thingy data has gateway url prepended to it
- fixed #12195: Visitor group by scratch membership shared among all Visitors (Dale Trexel)
- fixed #12227: Corrected AssetReport such that OrderBy works correctly.

7.10.22
- rfe #12223: Add date type to content profiling (metadata)
Expand Down
5 changes: 2 additions & 3 deletions lib/WebGUI/Asset/Wobject/AssetReport.pm
Expand Up @@ -159,9 +159,8 @@ sub getTemplateVars {
$rules->{'whereClause'} .= qq{$prop $op $value};
}

if($rules->{'whereClause'}) {
$rules->{'joinClass'} = $settings->{className};
}
# Always join to the class, asset and assetData are excluded by getLineageSql
$rules->{'joinClass'} = $settings->{className};

#Build the order by condition
my $order = $settings->{order};
Expand Down

0 comments on commit 8ae2457

Please sign in to comment.