Skip to content

Commit

Permalink
no need to hardcode model name here
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Feb 22, 2024
1 parent 0bed2fc commit 533285a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions classes/EventRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ protected function getWidgetName($widget)

$parentName = array_shift($nameArray);

if ($widget->model instanceof \Cms\Models\ThemeData) {
return $parentName;
} else {
if ($nameArray) {
$parentName .= '[' . implode('][', $nameArray) . ']';
}

Expand Down

0 comments on commit 533285a

Please sign in to comment.