Issue Bug Closed

#93513Bug: TypoScript: TypeError if .postUserFunc= without .postUserFunc.xxx=

Martin Bless 02/15/21, 08:31 updated 05/11/21, 16:00

Description

Problem

389.png

Code

# good, works
lib.helloworld_1 = TEXT
lib.helloworld_1 {
  value = Hello world!
}

# bad, FAILS
lib.helloworld_2 = TEXT
lib.helloworld_2 {
  value = Hello world!
  postUserFunc = ArtbeitDesign\Sitepackage\Utility\HttpCookie->csvAddRegionCookie
}

# good, works
lib.helloworld_3 = TEXT
lib.helloworld_3 {
  value = Hello world!
  postUserFunc = ArtbeitDesign\Sitepackage\Utility\HttpCookie->csvAddRegionCookie
  postUserFunc {
  }
}

Reviews 2