mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-19 04:58:19 +01:00
Fixes issue when saving pages without a folder element [#1163]
This commit is contained in:
@@ -461,7 +461,7 @@ class AdminController extends AdminBaseController
|
||||
/** @var Page $obj */
|
||||
$obj = $this->admin->page(true);
|
||||
|
||||
if (!$data['folder']) {
|
||||
if (!isset($data['folder']) || !$data['folder']) {
|
||||
$data['folder'] = $obj->slug();
|
||||
$this->data['folder'] = $obj->slug();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user