File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Classes/Core/Functional/Framework/DataHandling Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ protected function createDataHandler(): DataHandler
559559 {
560560 $ this ->dataHandler = GeneralUtility::makeInstance (DataHandler::class);
561561 $ backendUser = $ this ->getBackendUser ();
562- if (isset ($ backendUser ->uc ['copyLevels ' ])) {
562+ if (isset ($ backendUser ->uc ['copyLevels ' ]) && property_exists ( $ this -> dataHandler , ' copyTree ' ) ) {
563563 $ this ->dataHandler ->copyTree = $ backendUser ->uc ['copyLevels ' ];
564564 }
565565 return $ this ->dataHandler ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ final public function __construct(
3333 public static function withBackendUser (BackendUserAuthentication $ backendUser ): self
3434 {
3535 $ dataHandler = GeneralUtility::makeInstance (DataHandler::class);
36- if (isset ($ backendUser ->uc ['copyLevels ' ])) {
36+ if (isset ($ backendUser ->uc ['copyLevels ' ]) && property_exists ( $ dataHandler , ' copyTree ' ) ) {
3737 $ dataHandler ->copyTree = $ backendUser ->uc ['copyLevels ' ];
3838 }
3939 return new static ($ dataHandler , $ backendUser );
You can’t perform that action at this time.
0 commit comments