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:
Flavio Copes
2017-04-12 14:09:50 +02:00
parent a1f5970a9c
commit 9961e28304
5 changed files with 52 additions and 38 deletions

View File

@@ -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;