Merge pull request #5755 from christianbeeznest/fixes-updates45

Internal: Set default visibilty true some extrafields required
pull/5756/head
christianbeeznest 1 year ago committed by GitHub
commit c910deed85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 27
      src/CoreBundle/DataFixtures/ExtraFieldFixtures.php

@ -81,18 +81,24 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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,
],
[
@ -100,6 +106,7 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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,
],
@ -108,6 +115,7 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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,
],
@ -116,6 +124,7 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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,
],
@ -131,12 +140,6 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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',
@ -172,12 +175,16 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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',
@ -394,6 +401,8 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'display_text' => 'Language',
'item_type' => ExtraField::FORUM_CATEGORY_TYPE,
'value_type' => ExtraField::FIELD_TYPE_TEXT,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'longTermAuthenticationRequestTokenUsed',
@ -412,6 +421,8 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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',
@ -544,6 +555,8 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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',
@ -563,6 +576,8 @@ class ExtraFieldFixtures extends Fixture implements FixtureGroupInterface
'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',

Loading…
Cancel
Save