Fixed form reset causing image uploads to fail when using Flex

This commit is contained in:
Matias Griese
2021-09-24 15:09:27 +03:00
parent 4038c0649c
commit 028e247df8
3 changed files with 23 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
3. [](#bugfix)
* Fixed `Folder::move()` throwing an error when target folder is changed by only appending characters to the end [#3445](https://github.com/getgrav/grav/issues/3445)
* Fixed some phpstan issues (all code level 1, Framework level 3)
* Fixed form reset causing image uploads to fail when using Flex
# v1.7.22
## 09/16/2021

View File

@@ -129,6 +129,17 @@ class FlexDirectoryForm implements FlexDirectoryFormInterface, JsonSerializable
return $this;
}
/**
* @param string $uniqueId
* @return void
*/
public function setUniqueId(string $uniqueId): void
{
if ($uniqueId !== '') {
$this->uniqueid = $uniqueId;
}
}
/**
* @param string $name
* @param mixed $default

View File

@@ -172,6 +172,17 @@ class FlexForm implements FlexObjectFormInterface, JsonSerializable
return $this;
}
/**
* @param string $uniqueId
* @return void
*/
public function setUniqueId(string $uniqueId): void
{
if ($uniqueId !== '') {
$this->uniqueid = $uniqueId;
}
}
/**
* @param string $name
* @param mixed $default