Explorar el Código

Add "no group" option see BT#11014

jmontoyaa hace 8 años
padre
commit
995b04a65b
Se han modificado 3 ficheros con 11 adiciones y 1 borrados
  1. 1 0
      plugin/bbb/lang/english.php
  2. 1 0
      plugin/bbb/lang/french.php
  3. 9 1
      plugin/bbb/listing.php

+ 1 - 0
plugin/bbb/lang/english.php

@@ -55,3 +55,4 @@ $strings['plugin_tool_bbb'] = 'Video';
 $strings['ThereAreNotRecordingsForTheMeetings'] = 'There are not recording for the meeting sessions';
 $strings['NoRecording'] = 'No recording';
 $strings['ClickToContinue'] = 'Click to continue';
+$strings['NoGroup'] = 'No group';

+ 1 - 0
plugin/bbb/lang/french.php

@@ -38,3 +38,4 @@ $strings['plugin_tool_bbb'] = 'Vidéo';
 $strings['ThereAreNotRecordingsForTheMeetings'] = 'Aucun enregistrement disponible';
 $strings['NoRecording'] = "Pas d'enregistrement";
 $strings['ClickToContinue'] = 'Cliquez pour continuer';
+$strings['NoGroup'] = 'Sans groupe';

+ 9 - 1
plugin/bbb/listing.php

@@ -1,4 +1,7 @@
 <?php
+
+use ChamiloSession as Session;
+
 /**
  * This script initiates a video conference session, calling the BigBlueButton API
  * @package chamilo.plugin.bigbluebutton
@@ -7,6 +10,10 @@
 $course_plugin = 'bbb'; //needed in order to load the plugin lang variables
 require_once __DIR__.'/config.php';
 
+if (isset($_REQUEST['gidReq'])) {
+    Session::write('_gid', (int) $_REQUEST['gidReq']);
+}
+
 $plugin = BBBPlugin::create();
 $tool_name = $plugin->get_lang('Videoconference');
 
@@ -139,6 +146,7 @@ if ($bbb->isGlobalConference() === false &&
 
     $form = new FormValidator(api_get_self().'?'.api_get_cidreq());
     $groupId = api_get_group_id();
+
     $groups = GroupManager::get_groups();
     if ($groups) {
         $meetingsInGroup = $bbb->getAllMeetingsInCourse(api_get_course_int_id(), api_get_session_id(), 1);
@@ -151,7 +159,7 @@ if ($bbb->isGlobalConference() === false &&
             }
         }
 
-        $groupList[0] = get_lang('Select');
+        $groupList[0] = $plugin->get_lang('NoGroup');
         $groupList = array_merge($groupList, array_column($groups, 'name', 'iid'));
 
         $form->addSelect('group_id', get_lang('Groups'), $groupList, ['id' => 'group_select']);