Export Data #303
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#303
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
It's an odd behavior, but if I go to a component admin list view for one of my components, select records, then click Export Data, the data exports, but without the header row. But, another admin list view works perfectly fine doing the exact same thing.
Expected result
Export data complete with header row.
Actual result
Data is exported without header.
System information (as much as possible)
Additional comments
The code used to build the headers are found here in each list view module. You can debug the issue by starting at that function and working your way up into the main helper class of your component.
Cursory look doesn't show an issue. It was working fine pre-JCB 2.8.0.
For the time being i think I'm just going to have to remove they import/export function, which would have made life easier, and just make a notation in my mind that this featureis unreliable.
When i eventually have time to dedicate to debugging JCB inserted code, then i will. Until then, this is an unreliable/unstable feature.
What's not getting added is lines 242-260 from that sample model in Sermon Distributor.
I'll further point out that I created a blank site, installed JCB 2.7.10, and the export works as intended. upgrade to JCB 2.8.0 and it failed. Reinstall JCB 2.7.10, overwriting 2.8.0, and it gets compiled correctly.
I just looked at JCB and it still added those lines for example to the the fields model of JCB.
@Llewellynvdm I remember you made improvements to Interpretation class function called setGetItemsMethodStringFix, could this be the issue.
The code mentioned by @mwweb is build in that class function.
@mwweb does the view have permissions set? You will see we check for that on line 11813.
You can set the views permissions in the Admin view->Settings (tab)->Permissions That it looks something like this:
Then it will add the code your are missing, but that still does not explain why the header values are not added to your export data.
Well it actually does, if we does no permissions, and no strings to fix, it will not add the headers on line 12076. I would suggest we move those to be added even if we have no permissions, if the export switch is active.
I think we have a bug.
Hmmm yes that is right, okay I will push a patch for this.
@mwweb a quick patch would be to change line 12067 to:
This will resolve the issue, and with the next update it will be patched.
I did testing, and that did resolve the issue.