Skip to content

Conversation

@BryceStevenWilley
Copy link
Contributor

@BryceStevenWilley BryceStevenWilley commented Dec 5, 2025

action_button_html expects a string for the label, and if it doesn't get it, it just shows the default of "Edit". We started passing DALazyTemplates in #992, and hadn't done enough testing to ensure that the labels shown there are correct.

This patch fixes the issue by running the DALazyTemplate through str() before passing to action_button_html.

Pre fix:

Screenshot 2025-12-05 at 10 22 53 AM

Post fix:

Screenshot 2025-12-05 at 10 21 27 AM

@BryceStevenWilley BryceStevenWilley self-assigned this Dec 5, 2025
@BryceStevenWilley BryceStevenWilley added the bug Something isn't working label Dec 5, 2025
`action_button_html` expects a string for the label, and if it doesn't get it,
it just shows the default of "Edit". We started passing `DALazyTemplates` in
#992, and hadn't done enough testing to ensure that the labels shown there are
correct.

This patch fixes the issue by running the `DALazyTemplate` through `str()`
before passing to `action_button_html`.
Copy link
Member

@nonprofittechy nonprofittechy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this

@nonprofittechy nonprofittechy merged commit f787e85 into main Dec 5, 2025
8 checks passed
@nonprofittechy nonprofittechy deleted the fix_labels branch December 5, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants