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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user