mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
Don't change page template if there is no page template field, OR if the template is of type default, or not set
Fixes https://github.com/getgrav/grav-plugin-admin/issues/1059 Fixes https://github.com/getgrav/grav/issues/1403 Fixes https://github.com/getgrav/grav-plugin-admin/issues/1062
This commit is contained in:
@@ -1362,7 +1362,8 @@ class AdminController extends AdminBaseController
|
||||
|
||||
$this->admin->json_response = [
|
||||
'status' => 'success',
|
||||
'child_type' => 'default'
|
||||
'child_type' => '',
|
||||
'message' => $this->admin->translate('PLUGIN_ADMIN.NO_CHILD_TYPE')
|
||||
];
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user