1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 07:06:45 +02:00

feat(fields): update logic for setting enabled, affected all fields #564

This commit is contained in:
Awilum
2021-08-07 11:46:20 +03:00
parent 912a321755
commit 1d95f5999c
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ use Atomastic\Arrays\Arrays;
emitter()->addListener('onContentFetchSingleHasResult', static function (): void {
if (! registry()->get('flextype.settings.entries.content.fields.content.fetch.enabled')) {
if (! registry()->get('flextype.settings.entries.content.fields.content.enabled')) {
return;
}

View File

@@ -22,7 +22,7 @@ emitter()->addListener('onContentFetchSingleHasResult', static function (): void
emitter()->addListener('onContentCreate', static function (): void {
if (registry()->get('flextype.settings.entries.content.fields.created_at.enabled')) {
if (! registry()->get('flextype.settings.entries.content.fields.created_at.enabled')) {
return;
}