Skip to content

Commit

Permalink
[Backport 13.4] [BUGFIX] Do not pretend to be a cObject (#1515)
Browse files Browse the repository at this point in the history
* [BUGFIX] Do not pretend to be a cObject

`templateName` is of type string/stdWrap.
However, the snippet gives the impression that it is a cObject due to `templateName = TEXT`.

Working:
```
templateName = Default
```

Working
```
templateName.stdWrap.cObject = TEXT
templateName.stdWrap.cObject.value = Default
```

*Not* working
```
templateName= TEXT
templateName.value = Default
```

* [TASK] Remove unnecessary stdWrap

No extra `stdWrap` is necessary. `templateName` has direct stdWrap behaviour.

Related: #1513

---------

Co-authored-by: Julian Hofmann <[email protected]>
Co-authored-by: Julian Hofmann <[email protected]>
  • Loading branch information
3 people authored Feb 3, 2025
1 parent 2484c97 commit 3bb9ae6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
lib.stdContent = FLUIDTEMPLATE
lib.stdContent {
templateName = TEXT
templateName.stdWrap {
templateName {
cObject = TEXT
cObject {
data = levelfield:-2,backend_layout_next_level,slide
Expand Down

0 comments on commit 3bb9ae6

Please sign in to comment.