Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Internal: Set default visibilty true some extrafields required
  • Loading branch information
christianbeeznest committed Aug 27, 2024
commit c0fb7c3160511d3049b7ce26d25f5a8ab1b9784e
27 changes: 21 additions & 6 deletions src/CoreBundle/DataFixtures/ExtraFieldFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,25 +81,32 @@ public static function getExtraFields(): array
'display_text' => 'Tags',
'item_type' => ExtraField::COURSE_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TAG,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'video_url',
'display_text' => 'VideoUrl',
'item_type' => ExtraField::COURSE_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TEXT,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'image',
'display_text' => 'Image',
'item_type' => ExtraField::SESSION_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_FILE_IMAGE,
'visible_to_self' => true,
'changeable' => true,
],

[
'variable' => 'mail_notify_invitation',
'display_text' => 'Notify of invitations by email',
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_SELECT,
'visible_to_self' => true,
'default_value' => 1,
'add_options' => true,
],
Expand All @@ -108,6 +115,7 @@ public static function getExtraFields(): array
'display_text' => 'Notify of messages by email',
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_SELECT,
'visible_to_self' => true,
'default_value' => 1,
'add_options' => true,
],
Expand All @@ -116,6 +124,7 @@ public static function getExtraFields(): array
'display_text' => 'Notify of group messages by email',
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_SELECT,
'visible_to_self' => true,
'default_value' => 1,
'add_options' => true,
],
Expand All @@ -131,12 +140,6 @@ public static function getExtraFields(): array
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TEXT,
],
[
'variable' => 'tags',
'display_text' => 'Tags',
'item_type' => ExtraField::SKILL_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TAG,
],
[
'variable' => 'send_notification_at_a_specific_date',
'display_text' => 'Send notification at a specific date',
Expand Down Expand Up @@ -172,12 +175,16 @@ public static function getExtraFields(): array
'display_text' => 'Show in catalogue',
'item_type' => ExtraField::COURSE_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_RADIO,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'multiple_language',
'display_text' => 'In multiple languages',
'item_type' => ExtraField::COURSE_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_SELECT_MULTIPLE,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'acquisition',
Expand Down Expand Up @@ -394,6 +401,8 @@ public static function getExtraFields(): array
'display_text' => 'Language',
'item_type' => ExtraField::FORUM_CATEGORY_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TEXT,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'longTermAuthenticationRequestTokenUsed',
Expand All @@ -412,6 +421,8 @@ public static function getExtraFields(): array
'display_text' => 'My terms',
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TEXT,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'new_tracking_system',
Expand Down Expand Up @@ -544,6 +555,8 @@ public static function getExtraFields(): array
'display_text' => 'Terms enabled',
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_CHECKBOX,
'visible_to_self' => false,
'changeable' => true,
],
[
'variable' => 'terms_villedustage',
Expand All @@ -563,6 +576,8 @@ public static function getExtraFields(): array
'display_text' => 'UID',
'item_type' => ExtraField::USER_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TEXT,
'visible_to_self' => false,
'changeable' => true,
],
[
'variable' => 'use_score_as_progress',
Expand Down