Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Fix order/direction being both usable for order direction
Browse files Browse the repository at this point in the history
We must decide on a valid value, but to allow old templates to be used
without changes, direction is now used when order is not able.

fixes #3886
  • Loading branch information
Jannis Mosshammer committed Mar 21, 2013
1 parent 7e29c88 commit 35faabe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/modules/Cronks/lib/js/Cronk/grid/MetaGridPanel.js
Expand Up @@ -169,6 +169,7 @@ Ext.ns("Cronk.grid");

this.fieldIterator(function (fieldName, field) {
if (field.order['default'] === true) {
field.order.order = field.order.order || field.order.direction;
storeConfig.sortInfo = {
direction: (field.order.order ? field.order.order.toUpperCase() : 'ASC'),
field: fieldName
Expand Down

0 comments on commit 35faabe

Please sign in to comment.