Skip to content

Fix rendering of field values in ExcelDataFormatter#1

Open
Zazama wants to merge 1 commit intoatwx:mainfrom
wakeworks:main
Open

Fix rendering of field values in ExcelDataFormatter#1
Zazama wants to merge 1 commit intoatwx:mainfrom
wakeworks:main

Conversation

@Zazama
Copy link
Copy Markdown

@Zazama Zazama commented Jan 15, 2026

Currently on SS6, there is an error when rendering a field value via TemplateEngine:

[Emergency] Uncaught ArgumentCountError: Too few arguments to function SilverStripe\TemplateEngine\SSTemplateEngine::renderString(), 1 passed in /usr/www/users/abc/xyz/vendor/atwx/silverstripe-excel-export/code/ExcelDataFormatter.php on line 278 and at least 2 expected

because the definition has changed: https://docs.silverstripe.org/en/6/changelogs/6.0.0/#view-layer-abstraction

SSViewer::fromString() and the SSViewer_FromString class have been replaced with TemplateEngine::renderString().

This PR fixes the error using the new method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant