Skip to content

Commit

Permalink
Fix order clause to determine order column from concrete table
Browse files Browse the repository at this point in the history
otherwise it leads to error ambiguous column when RBAC was added.
  • Loading branch information
lpichler committed Mar 2, 2017
1 parent ab55c57 commit 74351e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion product/alerts/rss/newest_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ item_class: Vm
search_method:
limit_to_time:
limit_to_count:
orderby: "created_on DESC"
orderby: "vms.created_on DESC"

# Included tables and columns for query performance
include:
Expand Down
2 changes: 1 addition & 1 deletion spec/models/rss_feed/data/newest_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ item_class: Vm
search_method:
limit_to_time:
limit_to_count:
orderby: "created_on DESC"
orderby: "vms.created_on DESC"

# Included tables and columns for query performance
include:
Expand Down

0 comments on commit 74351e9

Please sign in to comment.