Description
Bug report
Summary
Changing a template when editing a resource results in an error when the resource automatically reload to apply selected template.
The only way to change the resource template is to quick edit and save from the resource tree.
Step to reproduce
Load a resource in the manager and try to switch template, even the empty one.
Observed behavior
"Error: Class 'DocumentUpdateManagerController' not found
Errors:
ResourceManagerController::getInstance(object, string "DocumentUpdateManagerController", Array ( [namespace] => core [namespace_path] => /paas/c0065/www/manager/ [action] => resource/update [controller] => resource/update ) )
MODX\Revolution\modManagerResponse->outputContent(Array ( ) )
MODX\Revolution\modManagerRequest->prepareResponse()
MODX\Revolution\modManagerRequest->handleRequest()"
Expected behavior
The page should reaload with the selected template.
Environment
Tested on 2 environments:
- MODX Cloud install (c0065.paas2.ams.modxcloud.com)
- Local install using Laragon on a Windows 10 pc