mirror of
https://github.com/getgrav/grav.git
synced 2026-03-01 01:51:29 +01:00
Fixed FlexObject::freeMedia() method causing media to become null
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -274,6 +274,14 @@ trait FlexMediaTrait
|
||||
$this->clearMediaCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
protected function freeMedia(): void
|
||||
{
|
||||
$this->unsetObjectProperty('media');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $uri
|
||||
* @return Medium|null
|
||||
|
||||
Reference in New Issue
Block a user