summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorEvan Hallmark <[email protected]>2016-11-07 11:53:17 -0800
committerEvan Hallmark <[email protected]>2016-11-07 11:53:17 -0800
commit90b69543ccad773ffff581dd929d94502e45cae9 (patch)
tree80426bc97c67b4356d80889d6d18be505b26cd1a /lib
parent5d42f7708f7d3f1c25e9f31ff13db58679c1dcb7 (diff)
downloadcaxlsx-90b69543ccad773ffff581dd929d94502e45cae9.tar.gz
caxlsx-90b69543ccad773ffff581dd929d94502e45cae9.zip
Updated pivot_table#pivot_field_for to use the axisPage attr for page fields instead of axisCol
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/pivot_table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/pivot_table.rb b/lib/axlsx/workbook/worksheet/pivot_table.rb
index 71bcde90..7dac7aa3 100644
--- a/lib/axlsx/workbook/worksheet/pivot_table.rb
+++ b/lib/axlsx/workbook/worksheet/pivot_table.rb
@@ -257,7 +257,7 @@ module Axlsx
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