Minor - format code

pull/3565/head^2
Julio Montoya 5 years ago
parent 0ca1ec7118
commit fb9cc740b9
  1. 2
      main/mySpace/session_filter.php
  2. 7
      main/survey/fillsurvey.php
  3. 7
      main/ticket/new_ticket.php

@ -268,7 +268,6 @@ if ($form->validate()) {
$extraFields[] = $fieldValue; $extraFields[] = $fieldValue;
} }
//foreach ($filterCheckList as $fieldId => $field) {
$list = GradebookUtils::get_list_gradebook_certificates_by_user_id($value['user_id'], $categoryId); $list = GradebookUtils::get_list_gradebook_certificates_by_user_id($value['user_id'], $categoryId);
foreach ($list as $valueCertificate) { foreach ($list as $valueCertificate) {
$item = []; $item = [];
@ -281,7 +280,6 @@ if ($form->validate()) {
$item = array_merge($item, $extraFields); $item = array_merge($item, $extraFields);
$dataToExport[] = $item; $dataToExport[] = $item;
} }
//}
} }
Export::arrayToCsv($dataToExport, 'export'); Export::arrayToCsv($dataToExport, 'export');
} }

@ -3,6 +3,7 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use ChamiloSession as Session; use ChamiloSession as Session;
$lastQuestion = 0; $lastQuestion = 0;
/** /**
@ -812,10 +813,10 @@ if ((isset($_GET['show']) && $_GET['show'] != '') ||
} }
$counter++; $counter++;
// see GH#3582 // see GH#3582
if (isset($_GET['show']) && (int)$_GET['show'] >= 0) { if (isset($_GET['show']) && (int) $_GET['show'] >= 0) {
$lastQuestion = (int)$_GET['show'] - 1; $lastQuestion = (int) $_GET['show'] - 1;
} else { } else {
$lastQuestion = (int)$row['question_option_id']; $lastQuestion = (int) $row['question_option_id'];
} }
} }
} }

@ -1,9 +1,7 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/**
* @package chamilo.ticket
*/
require_once __DIR__.'/../inc/global.inc.php'; require_once __DIR__.'/../inc/global.inc.php';
if (!api_is_platform_admin() && api_get_setting('ticket_allow_student_add') !== 'true') { if (!api_is_platform_admin() && api_get_setting('ticket_allow_student_add') !== 'true') {
@ -85,7 +83,7 @@ function updateLpList(courseId, sessionId) {
}, function (lpList) { }, function (lpList) {
$("<option>", { $("<option>", {
value: 0, value: 0,
text: "' . get_lang('Select') . '" text: "'.get_lang('Select').'"
}).appendTo($selectLp); }).appendTo($selectLp);
if (lpList.length > 0) { if (lpList.length > 0) {
@ -95,7 +93,6 @@ function updateLpList(courseId, sessionId) {
text: lp.text text: lp.text
}).appendTo($selectLp); }).appendTo($selectLp);
}); });
$selectLp.find("option[value=\'' . $lpId . '\']").attr("selected",true); $selectLp.find("option[value=\'' . $lpId . '\']").attr("selected",true);
} }

Loading…
Cancel
Save