Skip to content

Commit

Permalink
update plugins
Browse files Browse the repository at this point in the history
admin panel + form + flex objects
  • Loading branch information
fannymugnier committed Mar 22, 2021
1 parent 4fd4201 commit f962b09
Show file tree
Hide file tree
Showing 103 changed files with 10,154 additions and 106,167 deletions.
22 changes: 21 additions & 1 deletion user/plugins/admin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# v1.10.8
## 03/19/2021

1. [](#improved)
* Include alt text and title for images added to the editor [#2098](https://github.com/getgrav/grav-plugin-admin/issues/2098)
1. [](#bugfix)
* Fixed issue replacing `wildcard` field names in flex collections [#2092](https://github.com/getgrav/grav-plugin-admin/pull/2092)
* Fixed legacy Pages having old `modular` reference instead of `module` [#2093](https://github.com/getgrav/grav-plugin-admin/issues/2093)
* Fixed issue where Add New modal would close if selecting an item outside of the modal window. It is now necessary go through the Cancel button and clicking the overlay won't trigger the closing of the modal [#2089](https://github.com/getgrav/grav-plugin-admin/issues/2089), [#2065](https://github.com/getgrav/grav-plugin-admin/issues/2065)

# v1.10.7
## 03/17/2021

1. [](#improved)
* Force height of Flex pages admin to fit available space
* Updated languages from Crowdin.com
* Better field type definitions for file, pagemedia, filepicker and pagemediafield
1. [](#bugfix)
* Fixed error when checking missing log file [#2088](https://github.com/getgrav/grav-plugin-admin/issues/2088)

# v1.10.6
## 02/23/2021

Expand All @@ -7,7 +27,7 @@
* Flex pages admin better uses available space [#2075](https://github.com/getgrav/grav/issues/2075)
1. [](#bugfix)
* Regression: Fixed enabling/disabling plugin or theme corrupting configuration
* Fixed unnecessary closing bracket cuasing JS error [#2079](https://github.com/getgrav/grav-plugin-admin/issues/2079)
* Fixed unnecessary closing bracket causing JS error [#2079](https://github.com/getgrav/grav-plugin-admin/issues/2079)
* Fixed wrong language in Admin Tools [#2077](https://github.com/getgrav/grav-plugin-admin/issues/2077)

# v1.10.5
Expand Down
19 changes: 18 additions & 1 deletion user/plugins/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,24 @@ public function getFormFieldTypes()
'array' => true
],
'file' => [
'array' => true
'array' => true,
'media_field' => true,
'validate' => [
'type' => 'ignore'
]
],
'pagemedia' => [
'array' => true,
'media_field' => true,
'validate' => [
'type' => 'ignore'
]
],
'filepicker' => [
'media_picker_field' => true
],
'pagemediaselect' => [
'media_picker_field' => true
],
'permissions' => [
'ignore_empty' => true,
Expand Down
2 changes: 1 addition & 1 deletion user/plugins/admin/blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Admin Panel
slug: admin
type: plugin
version: 1.10.6
version: 1.10.8
description: Adds an advanced administration panel to manage your site
icon: empire
author:
Expand Down
12 changes: 6 additions & 6 deletions user/plugins/admin/classes/plugin/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,18 @@ public function taskSave()

switch ($this->view) {
case 'pages':
return $this->taskSavePage();
return $this->savePage();
case 'user':
return $this->taskSaveUser();
return $this->saveUser();
default:
return $this->taskSaveDefault();
return $this->saveDefault();
}
}

/**
* @return bool
*/
protected function taskSaveDefault()
protected function saveDefault()
{
// Handle standard data types.
$type = $this->getDataType();
Expand Down Expand Up @@ -451,7 +451,7 @@ protected function taskForgot()
*
* @return bool
*/
protected function taskSaveUser()
protected function saveUser()
{
/** @var UserCollectionInterface $users */
$users = $this->grav['accounts'];
Expand Down Expand Up @@ -1358,7 +1358,7 @@ public function taskSaveNewFolder()
/**
* @return bool
*/
protected function taskSavePage()
protected function savePage()
{
$reorder = true;

Expand Down
Loading

0 comments on commit f962b09

Please sign in to comment.