Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Enforce ArchiveViewHelper to return a string #180

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

andreaskienast
Copy link
Member

If the configuration plugin.tx_blog.settings.archiveUid is undefined,
the link to the archive pages cannot be built which causes the
"generation" of the link text only. However, this may fail if only the
year is returned, as it is an integer.

This patch adds a string cast to the rendering result to handle
year-only results as strings as well.

If the configuration `plugin.tx_blog.settings.archiveUid` is undefined,
the link to the archive pages cannot be built which causes the
"generation" of the link text only. However, this may fail if only the
year is returned, as it is an integer.

This patch adds a string cast to the rendering result to handle
year-only results as strings as well.
@coveralls
Copy link

coveralls commented Jan 7, 2021

Coverage Status

Coverage remained the same at 5.514% when pulling d6f8c74 on bugfix/archive-vh-enforce-string into 5fb0adb on master.

@benjaminkott benjaminkott merged commit d1d42da into master Jan 7, 2021
@benjaminkott benjaminkott deleted the bugfix/archive-vh-enforce-string branch January 7, 2021 10:49
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.

3 participants