Skip to content

[3.0.0-rc1] Error changing a resource template #16010

Closed
@smanu85

Description

@smanu85

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

modx3-rc1_tpl_error
"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions