File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1665,7 +1665,6 @@ public function handleChangedEntryType(ConfigEvent $event): void
16651665 $ entryTypeRecord ->handle = $ data ['handle ' ];
16661666 $ entryTypeRecord ->icon = $ data ['icon ' ] ?? null ;
16671667 $ entryTypeRecord ->color = $ data ['color ' ] ?? null ;
1668- $ entryTypeRecord ->uiLabelFormat = $ data ['uiLabelFormat ' ] ?? '{title} ' ;
16691668 $ entryTypeRecord ->hasTitleField = $ data ['hasTitleField ' ];
16701669 $ entryTypeRecord ->titleTranslationMethod = $ data ['titleTranslationMethod ' ] ?? '' ;
16711670 $ entryTypeRecord ->titleTranslationKeyFormat = $ data ['titleTranslationKeyFormat ' ] ?? null ;
@@ -1680,6 +1679,9 @@ public function handleChangedEntryType(ConfigEvent $event): void
16801679 if (Craft::$ app ->getDb ()->columnExists (Table::ENTRYTYPES , 'description ' )) {
16811680 $ entryTypeRecord ->description = $ data ['description ' ] ?? null ;
16821681 }
1682+ if (Craft::$ app ->getDb ()->columnExists (Table::ENTRYTYPES , 'uiLabelFormat ' )) {
1683+ $ entryTypeRecord ->uiLabelFormat = $ data ['uiLabelFormat ' ] ?? '{title} ' ;
1684+ }
16831685
16841686 if (!empty ($ data ['fieldLayouts ' ])) {
16851687 // Save the field layout
You can’t perform that action at this time.
0 commit comments