Export does not handle long view names #946
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#946
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
Create a component with a view name that is longer than 31 characters
(ex. "PROFILE Status Notification Types")
Compile, Run
Add some entries into the view
Select some entries from the admin list view and select EXPORT DATA button
Expected result
Data is exported to a file.
Actual result
Error is displayed:
Maximum 31 characters allowed in sheet title.
C:\wamp64\www\COMPONENT\libraries\phpspreadsheet\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Worksheet\Worksheet.php:470
System information (as much as possible)
Additional comments
It appears that it is using the 'System Name' of the admin view.
Maybe if the name is > 31 charachters, then use the 'Name (list of records)' or possibly just cut-off at 31 characters, rather than error out.
BTW / FYI ... this is a pretty low priority issue because it can be resolved by just making the System Name shorter; however, some complex components really need more detailed (longer) System Names to make it easier to work with during development.
Far as I know this is a Joomla/Database limitation, in all honesty I have never ran into this issue. Been building many many extentions and with many clients and have never had this issue.
So at this point we will not be making any changes in this area, maybe once in J4 we can come back to this... maybe.
You're just not as 'wordy' as me :-)
I can live with it as it's pretty easy to just rename the view of the file as it's only that field that causes the problem.
(Just strange that it is 31 charachters, a rather odd length)