Closed (fixed)
Project:
CSV Serialization
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2017 at 13:24 UTC
Updated:
13 Mar 2018 at 14:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
musa.thomasComment #3
ramya balasubramanian commentedHi Musa.thomas,
I have applied this patch and its working fine . Thanks
Comment #4
DustinSwede commentedThis patch works stops the crash however the headers no longer show up in the output. (The 1.0.0 version of this module had the headers)
Comment #5
c-logemannI can confirm this issue when using this module with Contact Storage Export which does not provide a view in context. The possibility to use a context was implemented with #2772937: Headings in csv have machine names. But this implementation breaks the API so I set this bug priority to "major".
The patch #2 is avoiding the call of "getDisplay()" but does not provide any headers any more as reported by DustinSwede in #4.
I will provide a patch in my next comment.
Comment #6
c-logemannPatch to avoid the call of "getDisplay()" if view context isn't available and still provides header.
Comment #7
c-logemannComment #8
c-logemannComment #9
qudec commentedI used 6.patch with contact_storage_export module, works perfectly.
Comment #10
berdirCan confirm the problem, I'd even say this is critical as it is a regression and easy to reproduce fatal error when not using a view.
Comment #11
inversed commentedI needed this to get the Contact Storage Export module working. Patch #6 solved the problem right away.
Comment #12
andrej galuf commentedPatch #6 confirmed as working. Priority is definitely Critical, as Berdir stated, as it breaks on custom csv exporters that aren't based on Views.
Comment #14
grasmash commented