Skip to content

Commit

Permalink
Update CMSEditLinkAPI.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup authored Jul 8, 2020
1 parent ee75c41 commit 900581f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Api/CMSEditLinkAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ protected static function getModelAdmin(string $modelNameToEdit) : array
}
}
}
}
if($classFound && $modelNameToEdit && $myModelAdminclassObject) {
self::$_cache[$originalModelNameToEdit] = [
'ModelNameToEdit' => $modelNameToEdit,
'MyModelAdminclassObject' => $myModelAdminclassObject,
];
if($classFound && $modelNameToEdit && $myModelAdminclassObject) {
self::$_cache[$originalModelNameToEdit] = [
'ModelNameToEdit' => $modelNameToEdit,
'MyModelAdminclassObject' => $myModelAdminclassObject,
];
}
}
return self::$_cache[$originalModelNameToEdit];
}
Expand Down

0 comments on commit 900581f

Please sign in to comment.