mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 21:56:33 +02:00
feat(fields): add ability to override fields - fix typo
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user