Closed maxime-rainville closed 4 months ago
4.x-dev
File Link should use the File title as their default title. It's currently using the Filename including the path.
Expected results: the Title of the link matches the title of the file. Actual: The Filename of the File is the Title of the link
Fix this line: https://github.com/silverstripe/silverstripe-linkfield/blob/b6dcef0a273e43267ed1f608c461414bf7c716af/src/Models/FileLink.php#L53
No response
silverstripe/installer
This should be trivial to fix, but I'm putting it in Refinement first to give people a chance to disagree with me.
PR merged
Module version(s) affected
4.x-dev
Description
File Link should use the File title as their default title. It's currently using the Filename including the path.
How to reproduce
Expected results: the Title of the link matches the title of the file. Actual: The Filename of the File is the Title of the link
Possible Solution
Fix this line: https://github.com/silverstripe/silverstripe-linkfield/blob/b6dcef0a273e43267ed1f608c461414bf7c716af/src/Models/FileLink.php#L53
Acceptance criteria
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)PR