Fixed FlexObject::freeMedia() method causing media to become null

This commit is contained in:
Matias Griese
2020-09-23 16:17:25 +03:00
parent 46f654fcee
commit f5e53a9a4c
2 changed files with 9 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
* Fixed `onBlueprintCreated` firing multiple times recursively
* Fixed media upload failing with custom folders
* Fixed `unset()` in `ObjectProperty` class
* Fixed `FlexObject::freeMedia()` method causing media to become null
# v1.7.0-rc.16
## 09/01/2020

View File

@@ -274,6 +274,14 @@ trait FlexMediaTrait
$this->clearMediaCache();
}
/**
* @return void
*/
protected function freeMedia(): void
{
$this->unsetObjectProperty('media');
}
/**
* @param string $uri
* @return Medium|null