Skip to content

[3.0.0-rc1] Blank page when trying to create a Dashboard Widget #15982

Closed
@halftrainedharry

Description

@halftrainedharry

Bug report

Summary

When I try to create a new Dashboard Widget in the manager, no form is shown.

Step to reproduce

In the manager go to "Dashboards" -> tab "Widgets" -> click the "Create" button. (manager/?a=system/dashboards/widget/create)

Observed behavior

The panel on the right is blank. JS error in the console.

This line in the JS code throws an error, because Ext.getCmp('modx-extended-form') is undefined.

Ext.getCmp('modx-extended-form').disable();

Possible solution

Check if Ext.getCmp('modx-extended-form') is defined before trying to call .disable() on it.

if (Ext.getCmp('modx-extended-form')){
    Ext.getCmp('modx-extended-form').disable();
}
//or maybe
Ext.getCmp('modx-extended-form')?.disable();

Expected behavior

The form to create a widget is shown.

Environment

MODX 3.0.0-rc1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions