1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

fix(entries-fields): fix issue with undefined $data variable in EntriesField #528

This commit is contained in:
Awilum
2020-12-27 22:00:54 +03:00
parent a6a9dcb7b5
commit ed5103e80e

View File

@@ -14,6 +14,7 @@ if (flextype('registry')->get('flextype.settings.entries.fields.entries.fetch.en
if (flextype('entries')->hasStorage('fetch.data.entries.fetch')) {
// Get fetch.
$original = flextype('entries')->getStorage('fetch');
$data = [];
switch (flextype('registry')->get('flextype.settings.entries.fields.entries.fetch.result')) {
case 'toArray':