|
|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|