Skip to content

Commit

Permalink
Updated pivot_table#pivot_field_for to use the axisPage attr for page…
Browse files Browse the repository at this point in the history
… fields instead of axisCol
  • Loading branch information
Evan Hallmark committed Nov 7, 2016
1 parent 5d42f77 commit 90b6954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/axlsx/workbook/worksheet/pivot_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def pivot_field_for(cell_ref, subtotal=true)
elsif columns.include? cell_ref
'<pivotField axis="axisCol" compact="0" outline="0" subtotalTop="0" showAll="0" includeNewItemsInFilter="1">' + '<items count="1"><item t="default"/></items>' + '</pivotField>'
elsif pages.include? cell_ref
'<pivotField axis="axisCol" compact="0" outline="0" subtotalTop="0" showAll="0" includeNewItemsInFilter="1">' + '<items count="1"><item t="default"/></items>' + '</pivotField>'
'<pivotField axis="axisPage" compact="0" outline="0" subtotalTop="0" showAll="0" includeNewItemsInFilter="1">' + '<items count="1"><item t="default"/></items>' + '</pivotField>'
elsif data_refs.include? cell_ref
'<pivotField dataField="1" compact="0" outline="0" subtotalTop="0" showAll="0" includeNewItemsInFilter="1">' + '</pivotField>'
else
Expand Down

0 comments on commit 90b6954

Please sign in to comment.