mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix regression from #4396 in test fixtures
This commit is contained in:
parent
aada7a7334
commit
daa86d3a4c
@ -192,6 +192,11 @@ class FixtureBlueprint {
|
|||||||
if($data && array_key_exists('LastEdited', $data)) {
|
if($data && array_key_exists('LastEdited', $data)) {
|
||||||
$this->overrideField($obj, 'LastEdited', $data['LastEdited'], $fixtures);
|
$this->overrideField($obj, 'LastEdited', $data['LastEdited'], $fixtures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure Folder objects exist physically, as otherwise future File fixtures can't detect them
|
||||||
|
if($obj instanceof Folder) {
|
||||||
|
Filesystem::makeFolder($obj->getFullPath());
|
||||||
|
}
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
Config::inst()->update('DataObject', 'validation_enabled', $validationenabled);
|
Config::inst()->update('DataObject', 'validation_enabled', $validationenabled);
|
||||||
throw $e;
|
throw $e;
|
||||||
|
Loading…
Reference in New Issue
Block a user