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

feat(entries): rethinking Entries API philosophy #436

This commit is contained in:
Awilum
2020-07-13 15:07:39 +03:00
parent 751d1b2218
commit 1e77941721

View File

@@ -262,7 +262,7 @@ class Entries
// Create entries array from entries list and ignore current requested entry
foreach ($entries_list as $current_entry) {
if (strpos($current_entry['path'], $bind_id . '/entry' . '.' . $this->flextype->registry->get('flextype.settings.entries.extension')) !== false) {
if (strpos($current_entry['path'], $path . '/entry' . '.' . $this->flextype->registry->get('flextype.settings.entries.extension')) !== false) {
// ignore ...
} else {
// We are checking...
@@ -276,9 +276,6 @@ class Entries
// For each founded entry we should create $entries array.
$entry = $this->fetch($uid);
// Flatten a multi-dimensional entries array with dots.
$entry = Arr::dot($entry);
// Add entry into the entries
$entries[$uid] = $entry;
}