Project

General

Profile

Bug #7945

Cuando se activa un curso especial, el catálogo de cursos muestra un error

Added by Carlos Vargas about 4 years ago. Updated almost 4 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
Category:
Course settings
Target version:
-
Start date:
05/11/2015
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Easy
SCRUM pts - complexity:
?

Description

Cuando se activa un curso especial, el catálogo de cursos muestra un error

History

#1

Updated by Carlos Vargas about 4 years ago

Para corregirlo solo hay que saltar los slash para que interprete las comillas

Hay que hacer los mismo en las lineas: 598 aprox y 668 aprox

Actual
$without_special_courses = '';
if (!empty($specialCourseList)) {
$without_special_courses = ' AND course.code NOT IN (' . implode(',', $specialCourseList) . ')';
}

Correción
$without_special_courses = '';
if (!empty($specialCourseList)) {
$without_special_courses = ' AND course.code NOT IN (\'' . implode('\',\'', $specialCourseList) . '\')';
}

#2

Updated by Alex Aragon about 4 years ago

Corregido... pero lo hice asi, sin usar el "\"

$without_special_courses = '';
    if (!empty($specialCourseList)) {
        $without_special_courses = ' AND course.code NOT IN ("' . implode('","', $special_course_list) . '")';
    }

Enviado a PR

#3

Updated by Alex Aragon about 4 years ago

  • Status changed from New to Needs testing
  • Assignee changed from Carlos Vargas to Yannick Warnier
#5

Updated by Yannick Warnier almost 4 years ago

  • Status changed from Needs testing to Bug resolved
  • Assignee changed from Yannick Warnier to Carlos Vargas
  • % Done changed from 0 to 100

Gracias.

Also available in: Atom PDF