diff --git a/tests/scripts/insert_session_fields.php b/tests/scripts/insert_session_fields.php index de183720a7..b4d4e8ad1f 100644 --- a/tests/scripts/insert_session_fields.php +++ b/tests/scripts/insert_session_fields.php @@ -166,3 +166,36 @@ $brochure->save(array( 'field_visible' => 1, 'field_changeable' => 1 )); + +$targetOptions = array( + get_lang('Minedu'), + get_lang('Regiones') +); + +$target = new ExtraField('session'); +$target->save(array( + 'field_type' => ExtraField::FIELD_TYPE_SELECT, + 'field_variable' => 'target', + 'field_display_text' => get_lang('Target'), + 'field_visible' => 1, + 'field_changeable' => 1, + 'field_options' => implode('; ', $targetOptions) +)); + +$shortDescription = new ExtraField('session'); +$shortDescription->save(array( + 'field_type' => ExtraField::FIELD_TYPE_TEXT, + 'field_variable' => 'short_description', + 'field_display_text' => get_lang('ShortSescription'), + 'field_visible' => 1, + 'field_changeable' => 1 +)); + +$id = new ExtraField('session'); +$id->save(array( + 'field_type' => ExtraField::FIELD_TYPE_TEXT, + 'field_variable' => 'id', + 'field_display_text' => get_lang('Id'), + 'field_visible' => 1, + 'field_changeable' => 1 +));