Fixed flex objects with integer keys not working [#2863]

This commit is contained in:
Matias Griese
2020-03-23 10:18:51 +02:00
parent abd56ffee3
commit f8bf7ba010
3 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
# v1.7.0-rc.9
## mm/dd/2020
1. [](#bugfix)
* Fixed flex objects with integer keys not working [#2863](https://github.com/getgrav/grav/issues/2863)
# v1.7.0-rc.8
## 03/19/2020

View File

@@ -70,7 +70,7 @@ class FolderStorage extends AbstractFilesystemStorage
{
$list = [];
foreach ($keys as $key) {
$list[$key] = $this->getObjectMeta($key);
$list[$key] = $this->getObjectMeta((string)$key);
}
return $list;

View File

@@ -224,7 +224,7 @@ class SimpleStorage extends AbstractFilesystemStorage
$list = [];
foreach ($rows as $key => $row) {
$list[$key] = $this->saveRow($key, $row);
$list[$key] = $this->saveRow((string)$key, $row);
}
if ($list) {
@@ -441,7 +441,7 @@ class SimpleStorage extends AbstractFilesystemStorage
$list = [];
foreach ($this->data as $key => $info) {
$list[$key] = $this->getObjectMeta($key);
$list[$key] = $this->getObjectMeta((string)$key);
}
return $list;