app/models/effective/effective_datatable/ajax.rb in effective_datatables-2.3.6 vs app/models/effective/effective_datatable/ajax.rb in effective_datatables-2.3.7
- old
+ new
@@ -21,10 +21,10 @@
if params[:order] && params[:columns]
order_column_index = (params[:order].first[1][:column] rescue '0')
(params[:columns][order_column_index] || {})[:name]
elsif @default_order.present?
@default_order.keys.first
- end || table_columns.keys.first
+ end || table_columns.find { |col, opts| opts[:type] != :bulk_actions_column }.first
end
end
def order_index
(table_columns[order_name][:index] || 0) rescue 0