Loading...
 
Skip to main content

14.x & 15.x & doc.t.o: export sheet as CSV produces 'Array, Array, Array....'

Status
Closed
Subject
14.x & 15.x & doc.t.o: export sheet as CSV produces 'Array, Array, Array....'
Version
14.x Regression
15.x
15.x Regression
Category
  • Error
  • Regression
  • Community projects
  • Documentation (or Advocacy)
  • Dogfood on a *.tiki.org site
Feature
Spreadsheet
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Lastmod by
Xavier de Pedro
Rating
(0)
Description

14.x: export sheet produced WSOD (blank page). this used to work. (9.x, and 12.x)

error:
Fatal error: Call to a member function sheet_history() on a non-object in /var/www/xavi-9794-5723/tiki-export_sheet.php on line 48

And reproduced here:
https://doc.tiki.org/tiki-export_sheet.php?sheetId=2Question
(as registered user)

We need export this sheet from doc.t.o because it's the documentation of the feature, and we need a way to easily clone it in a trunk install, or tiki 12, to test regressions, etc.

Issue fixed in r57088 (trunk) and r57089 (14.x).

However, when exporting in CSV format (either pure CSV, or Excel-CSV format), content is stored as "Array, Array, Array..." (as many times as values)

Reproduced here:
http://xavi-9794-5723.show.tikiwiki.org/tiki-export_sheet.php?sheetId=1Question
u: admin
p: 12345

Solution

Since r49288, each cell on the grid hold his value inside a key name "value", not on the cell it self.
Updated the export functions to take that into consideration.
(Fixed in r57513, backported to 14.x and trunk)


Fix confirmed, thanks rjsmelo!

Importance
7
Easy to solve?
5
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5723
Created
Wednesday 30 September, 2015 19:33:51 UTC
by Xavier de Pedro
LastModif
Monday 15 February, 2016 09:27:42 UTC


Show PHP error messages