Add api_get_cidreq, fix flash message

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent a189b0edc0
commit 45ed27183c
  1. 3
      main/gradebook/gradebook_edit_all.php
  2. 4
      main/gradebook/gradebook_edit_eval.php
  3. 4
      main/gradebook/lib/fe/catform.class.php

@ -78,7 +78,7 @@ $table_evaluated[LINK_SURVEY] = array(
$submitted = isset($_POST['submitted']) ? $_POST['submitted'] : '';
if ($submitted == 1) {
Display :: display_confirmation_message(get_lang('GradebookWeightUpdated')) . '<br /><br />';
Display::addFlash(Display::return_message(get_lang('GradebookWeightUpdated')));
if (isset($_POST['evaluation'])) {
$eval_log = new Evaluation();
}
@ -254,7 +254,6 @@ if (!isset($_GET['exportpdf']) and !isset($_GET['export_certificate'])) {
Display:: display_header('');
}
}
?>
<div class="actions">
<a href="<?php echo Security::remove_XSS(

@ -20,7 +20,7 @@ $form = new EvalForm(
null,
'edit_eval_form',
null,
api_get_self() . '?editeval=' . Security::remove_XSS($_GET['editeval'])
api_get_self() . '?editeval=' . intval($_GET['editeval']).'&'.api_get_cidreq()
);
if ($form->validate()) {
$values = $form->exportValues();
@ -44,7 +44,7 @@ if ($form->validate()) {
}
$eval->set_visible($visible);
$eval->save();
header('Location: '.$_SESSION['gradebook_dest'].'?editeval=&selectcat=' . $eval->get_category_id());
header('Location: '.$_SESSION['gradebook_dest'].'?editeval=&selectcat=' . $eval->get_category_id().'&'.api_get_cidreq());
exit;
}
$selectcat_inter=isset($_GET['selectcat']) ? (int) $_GET['selectcat'] : 0;

@ -264,7 +264,7 @@ class CatForm extends FormValidator
'certif_min_score',
get_lang('CertificateMinScore'),
false,
array('class' => 'span1', 'maxlength' => '5')
array('maxlength' => '5')
);
$this->addRule(
'certif_min_score',
@ -301,7 +301,7 @@ class CatForm extends FormValidator
) == 'true')
) {
//Getting grade models
// Getting grade models
$obj = new GradeModel();
$obj->fill_grade_model_select_in_form(
$this,

Loading…
Cancel
Save