Skip to content

Commit

Permalink
[BUGFIX] Do not pretend to be a cObject (#1513)
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
  • Loading branch information
julianhofmann authored Feb 3, 2025
1 parent 55ae931 commit af8a95b
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 af8a95b

Please sign in to comment.