Merge pull request #5322 from christianbeeznest/GH-5317

Internal: Update Extra Fields After Migration or fresh installation - refs #5317
pull/5323/head
christianbeeznest 8 months ago committed by GitHub
commit 3d4817aa05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 88
      src/CoreBundle/DataFixtures/ExtraFieldFixtures.php
  2. 4
      src/CoreBundle/Entity/ExtraField.php

@ -160,6 +160,94 @@ class ExtraFieldFixtures extends Fixture
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'send_notification_at_a_specific_date',
'display_text' => 'Send notification at a specific date',
'item_type' => ExtraField::COURSE_ANNOUNCEMENT,
'value_type' => ExtraField::FIELD_TYPE_DATE,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'date_to_send_notification',
'display_text' => 'Date to send notification',
'item_type' => ExtraField::COURSE_ANNOUNCEMENT,
'value_type' => ExtraField::FIELD_TYPE_DATE,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'send_to_users_in_session',
'display_text' => 'Send to users in session',
'item_type' => ExtraField::SESSION_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_CHECKBOX,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'session_courses_read_only_mode',
'display_text' => 'Lock Course In Session',
'item_type' => ExtraField::COURSE_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_CHECKBOX,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'is_mandatory',
'display_text' => 'Is Mandatory',
'item_type' => ExtraField::SURVEY_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_CHECKBOX,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'show_in_catalogue',
'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' => 'Multiple Language',
'item_type' => ExtraField::COURSE_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_SELECT_MULTIPLE,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'acquisition',
'display_text' => 'Acquisition',
'item_type' => ExtraField::LP_VIEW_TYPE,
'value_type' => ExtraField::FIELD_TYPE_RADIO,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'invisible',
'display_text' => 'Invisible',
'item_type' => ExtraField::LP_VIEW_TYPE,
'value_type' => ExtraField::FIELD_TYPE_CHECKBOX,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'start_date',
'display_text' => 'Start Date',
'item_type' => ExtraField::LP_ITEM_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_DATETIME,
'visible_to_self' => true,
'changeable' => true,
],
[
'variable' => 'end_date',
'display_text' => 'End Date',
'item_type' => ExtraField::LP_ITEM_FIELD_TYPE,
'value_type' => ExtraField::FIELD_TYPE_DATETIME,
'visible_to_self' => true,
'changeable' => true,
],
];
$options = [

@ -48,6 +48,10 @@ class ExtraField
public const TRACK_EXERCISE_FIELD_TYPE = 18;
public const PORTFOLIO_TYPE = 19;
public const LP_VIEW_TYPE = 20;
public const COURSE_ANNOUNCEMENT = 21;
public const MESSAGE_TYPE = 22;
public const DOCUMENT_TYPE = 23;
public const ATTENDANCE_CALENDAR_TYPE = 24;
public const USER_FIELD_TYPE_RADIO = 3;
public const USER_FIELD_TYPE_SELECT_MULTIPLE = 5;

Loading…
Cancel
Save