Accessing settings in a Block custom view preview still always returns the first settings value #18346
Labels
affected/v15
area/frontend
state/sprint-candidate
We're trying to get this in a sprint at HQ in the next few weeks
type/bug
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
15.2.1
Bug summary
When a Block Grid block element has a settings model with more than one property any attempt to use the values in a Block Custom View an the back office always returns the first declared property in the settings model.
Specifics
This was said to be resolved in the update to Umbraco 15.2.0 but in my tests this is not the case. If I am mistaken and my testing code is incorrect, then please
advise.
Previous issues where this issue was outlined A: #17989
Previous issues where this issue was outlined B: #18024
I have been on the Umbraco forum asking about this issue:
Steps to reproduce
Created a Block Grid called Feature with a Block called Feature Block and a settings Block Feature settings.
Added the same parameters/attributes to each the content and settings Feature Name and Feature Details with slightly different aliases so they do not class.
Feature block shown in page:
Feature Block shown in preview in CMS - note the repeated settings value from first entry - featureName:
Feature Block showing content parameters:
Feature Block showing Settings parameters:
Here is the complete code for the Typescript Custom Block Gris preview:
Note:
I was viewing in the console.log output from UmbBlockGridTypeModel to see if there was another way of assessing the settings values. This game me this output. So I could see the ID of the settings block, but not the member values for feature name or feature details:
Expected result / actual result
Expect to see the correct values displayed in the preview for the settings parameters: Feature Name (theFeatureName) and Feature Details (ThisFeatureDetails)
I hope that this can be looked at again before the next Umbraco update and it would be great if this is resolved.
Thank you,
Kind regards,
Pete
This item has been added to our backlog AB#49173
The text was updated successfully, but these errors were encountered: