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

feat(fields): update and fix logic for all entries fields #563

This commit is contained in:
Awilum
2021-08-21 11:50:27 +03:00
parent 24565aa577
commit fc6ffa383c

View File

@@ -36,7 +36,7 @@ emitter()->addListener('onEntriesFetchSingleHasResult', static function (): void
if (isset($body['options']['method']) &&
strpos($body['options']['method'], 'fetch') !== false &&
is_callable([content(), $body['options']['method']])) {
is_callable([entries(), $body['options']['method']])) {
$fetchFromCallbackMethod = $body['options']['method'];
} else {
$fetchFromCallbackMethod = 'fetch';