diff --git a/src/flextype/core/Entries/Fields/Tokens/Items/CallsField.php b/src/flextype/core/Entries/Fields/Tokens/Items/CallsField.php index e8487598..42af54de 100644 --- a/src/flextype/core/Entries/Fields/Tokens/Items/CallsField.php +++ b/src/flextype/core/Entries/Fields/Tokens/Items/CallsField.php @@ -22,7 +22,7 @@ emitter()->addListener('onEntriesCreate', static function (): void { } // Determine is the current field file path is the same. - if (! strings(__FILE__)->replace(ROOT_DIR, '')->isEqual(entries()->registry()->get('methods.fetch.collection.fields.calls.path'))) { + if (! strings(__FILE__)->replace(ROOT_DIR, '')->isEqual(entries()->registry()->get('methods.create.collection.fields.calls.path'))) { return; } diff --git a/src/flextype/core/Entries/Fields/Tokens/Items/LimitCallsField.php b/src/flextype/core/Entries/Fields/Tokens/Items/LimitCallsField.php index 23c48c9e..18d462b9 100644 --- a/src/flextype/core/Entries/Fields/Tokens/Items/LimitCallsField.php +++ b/src/flextype/core/Entries/Fields/Tokens/Items/LimitCallsField.php @@ -22,7 +22,7 @@ emitter()->addListener('onEntriesCreate', static function (): void { } // Determine is the current field file path is the same. - if (! strings(__FILE__)->replace(ROOT_DIR, '')->isEqual(entries()->registry()->get('methods.fetch.collection.fields.limit_calls.path'))) { + if (! strings(__FILE__)->replace(ROOT_DIR, '')->isEqual(entries()->registry()->get('methods.create.collection.fields.limit_calls.path'))) { return; } diff --git a/src/flextype/core/Entries/Fields/Tokens/Items/StateField.php b/src/flextype/core/Entries/Fields/Tokens/Items/StateField.php index ea8a9233..52b79856 100644 --- a/src/flextype/core/Entries/Fields/Tokens/Items/StateField.php +++ b/src/flextype/core/Entries/Fields/Tokens/Items/StateField.php @@ -22,7 +22,7 @@ emitter()->addListener('onEntriesCreate', static function (): void { } // Determine is the current field file path is the same. - if (! strings(__FILE__)->replace(ROOT_DIR, '')->isEqual(entries()->registry()->get('methods.fetch.collection.fields.state.path'))) { + if (! strings(__FILE__)->replace(ROOT_DIR, '')->isEqual(entries()->registry()->get('methods.create.collection.fields.state.path'))) { return; }