Skip to content

Incorrect capitalisation of three letter acronyms for property names causes exception in partial view #20

@TwoMoreThings

Description

@TwoMoreThings

Which QuickBlocks version are you using?

latest from main

Which Umbraco version are you using? For example: 10.4.0 - don't just write v10

test site from the repo

Bug summary

If you create a three letter property name in all caps, such as CTA (e.g. for a link), the capitalisation of the property in the view is incorrect resulting an a exception.

This has been split out from a previous bug which contained 2 issues and this one is a little trickier to resolve.

Steps to reproduce

Create a property name using 3 letters in all caps, add the corresponding block to a page and try to view the page.

This markup
<a href="#" class="btn_01 mr-15" data-prop-name="CTA" data-prop-location="row">Donate Now</a>

results in this in the view

<a href="@row.Cta.Url" class="btn_01 mr-15" target="@row.Cta.Target">@row.Cta.Name</a>

when it should be:

<a href="@row.CTA.Url" class="btn_01 mr-15" target="@row.CTA.Target">@row.CTA.Name</a>

Expected result / actual result

The expected result is the property would appear in the page with no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions