silverstripe / silverstripe-admin

Silverstripe Admin Component
BSD 3-Clause "New" or "Revised" License
25 stars 91 forks source link

"Undefined index" error when accessing some model admins #1686

Closed GuySartorelli closed 4 months ago

GuySartorelli commented 4 months ago

Module version(s) affected

4.13.x

Description

Some model admins get this error when you try to access them:

[Notice] Undefined index: dataClass
GET /admin/registry/
Line 626 in /var/www/html/vendor/silverstripe/admin/code/ModelAdmin.php

The isset() is checking for the wrong thing.

How to reproduce

Install frameworktest, then go to the registry admin. It should blow up immediately.

Possible Solution

No response

Additional Context

No response

Validations

PRs

emteknetnz commented 4 months ago

Linked PR has been merged, it will auto-tag shortly