Skip to content

Commit c910dee

Browse files
Merge pull request #5755 from christianbeeznest/fixes-updates45
Internal: Set default visibilty true some extrafields required
2 parents 1982656 + c0fb7c3 commit c910dee

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

src/CoreBundle/DataFixtures/ExtraFieldFixtures.php

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,32 @@ public static function getExtraFields(): array
8181
'display_text' => 'Tags',
8282
'item_type' => ExtraField::COURSE_FIELD_TYPE,
8383
'value_type' => ExtraField::FIELD_TYPE_TAG,
84+
'visible_to_self' => true,
85+
'changeable' => true,
8486
],
8587
[
8688
'variable' => 'video_url',
8789
'display_text' => 'VideoUrl',
8890
'item_type' => ExtraField::COURSE_FIELD_TYPE,
8991
'value_type' => ExtraField::FIELD_TYPE_TEXT,
92+
'visible_to_self' => true,
93+
'changeable' => true,
9094
],
9195
[
9296
'variable' => 'image',
9397
'display_text' => 'Image',
9498
'item_type' => ExtraField::SESSION_FIELD_TYPE,
9599
'value_type' => ExtraField::FIELD_TYPE_FILE_IMAGE,
100+
'visible_to_self' => true,
101+
'changeable' => true,
96102
],
97103

98104
[
99105
'variable' => 'mail_notify_invitation',
100106
'display_text' => 'Notify of invitations by email',
101107
'item_type' => ExtraField::USER_FIELD_TYPE,
102108
'value_type' => ExtraField::FIELD_TYPE_SELECT,
109+
'visible_to_self' => true,
103110
'default_value' => 1,
104111
'add_options' => true,
105112
],
@@ -108,6 +115,7 @@ public static function getExtraFields(): array
108115
'display_text' => 'Notify of messages by email',
109116
'item_type' => ExtraField::USER_FIELD_TYPE,
110117
'value_type' => ExtraField::FIELD_TYPE_SELECT,
118+
'visible_to_self' => true,
111119
'default_value' => 1,
112120
'add_options' => true,
113121
],
@@ -116,6 +124,7 @@ public static function getExtraFields(): array
116124
'display_text' => 'Notify of group messages by email',
117125
'item_type' => ExtraField::USER_FIELD_TYPE,
118126
'value_type' => ExtraField::FIELD_TYPE_SELECT,
127+
'visible_to_self' => true,
119128
'default_value' => 1,
120129
'add_options' => true,
121130
],
@@ -131,12 +140,6 @@ public static function getExtraFields(): array
131140
'item_type' => ExtraField::USER_FIELD_TYPE,
132141
'value_type' => ExtraField::FIELD_TYPE_TEXT,
133142
],
134-
[
135-
'variable' => 'tags',
136-
'display_text' => 'Tags',
137-
'item_type' => ExtraField::SKILL_FIELD_TYPE,
138-
'value_type' => ExtraField::FIELD_TYPE_TAG,
139-
],
140143
[
141144
'variable' => 'send_notification_at_a_specific_date',
142145
'display_text' => 'Send notification at a specific date',
@@ -172,12 +175,16 @@ public static function getExtraFields(): array
172175
'display_text' => 'Show in catalogue',
173176
'item_type' => ExtraField::COURSE_FIELD_TYPE,
174177
'value_type' => ExtraField::FIELD_TYPE_RADIO,
178+
'visible_to_self' => true,
179+
'changeable' => true,
175180
],
176181
[
177182
'variable' => 'multiple_language',
178183
'display_text' => 'In multiple languages',
179184
'item_type' => ExtraField::COURSE_FIELD_TYPE,
180185
'value_type' => ExtraField::FIELD_TYPE_SELECT_MULTIPLE,
186+
'visible_to_self' => true,
187+
'changeable' => true,
181188
],
182189
[
183190
'variable' => 'acquisition',
@@ -394,6 +401,8 @@ public static function getExtraFields(): array
394401
'display_text' => 'Language',
395402
'item_type' => ExtraField::FORUM_CATEGORY_TYPE,
396403
'value_type' => ExtraField::FIELD_TYPE_TEXT,
404+
'visible_to_self' => true,
405+
'changeable' => true,
397406
],
398407
[
399408
'variable' => 'longTermAuthenticationRequestTokenUsed',
@@ -412,6 +421,8 @@ public static function getExtraFields(): array
412421
'display_text' => 'My terms',
413422
'item_type' => ExtraField::USER_FIELD_TYPE,
414423
'value_type' => ExtraField::FIELD_TYPE_TEXT,
424+
'visible_to_self' => true,
425+
'changeable' => true,
415426
],
416427
[
417428
'variable' => 'new_tracking_system',
@@ -544,6 +555,8 @@ public static function getExtraFields(): array
544555
'display_text' => 'Terms enabled',
545556
'item_type' => ExtraField::USER_FIELD_TYPE,
546557
'value_type' => ExtraField::FIELD_TYPE_CHECKBOX,
558+
'visible_to_self' => false,
559+
'changeable' => true,
547560
],
548561
[
549562
'variable' => 'terms_villedustage',
@@ -563,6 +576,8 @@ public static function getExtraFields(): array
563576
'display_text' => 'UID',
564577
'item_type' => ExtraField::USER_FIELD_TYPE,
565578
'value_type' => ExtraField::FIELD_TYPE_TEXT,
579+
'visible_to_self' => false,
580+
'changeable' => true,
566581
],
567582
[
568583
'variable' => 'use_score_as_progress',

0 commit comments

Comments
 (0)