lib/gooddata/models/metadata/report_definition.rb in gooddata-0.6.22 vs lib/gooddata/models/metadata/report_definition.rb in gooddata-0.6.23
- old
+ new
@@ -302,10 +302,10 @@
widths = content['grid']['columnWidths'] || []
content['grid']['columnWidths'] = widths.map do |item|
if item.is_a?(Hash)
GoodData::Helpers.deep_dup(item).tap do |i|
- if i['locator'].length > 0 && ['locator'][0].key?('attributeHeaderLocator')
+ if i['locator'].length > 0 && i['locator'][0].key?('attributeHeaderLocator')
i['locator'][0]['attributeHeaderLocator']['uri'].gsub!("[#{uri_what}]", "[#{uri_for_what}]")
end
end
else
item