Fix incorrect documen_date variable + fix issue in redirection from gradebook certificate edition whereby some certificate-related icons disappeared - refs #7745

1.10.x
Yannick Warnier 10 years ago
parent 6c04736f83
commit c5541c4c80
  1. 7
      main/document/edit_document.php

@ -187,7 +187,7 @@ if (isset($_POST['comment'])) {
// Just in case see BT#3525
if (empty($title)) {
$title = $documen_data['title'];
$title = $document_data['title'];
}
if (empty($title)) {
@ -333,7 +333,7 @@ if ($is_allowed_to_edit) {
$dir,
api_get_user_id()
);
header('Location: document.php?id=' . $document_data['parent_id'] . '&' . api_get_cidreq());
header('Location: document.php?id=' . $document_data['parent_id'] . '&' . api_get_cidreq() . ($is_certificate_mode?'&curdirpath=/certificates&selectcat=1':''));
exit;
} else {
$msgError = get_lang('Impossible');
@ -421,6 +421,9 @@ if ($owner_id == api_get_user_id() ||
)
) {
$action = api_get_self().'?id='.$document_data['id'].'&'.api_get_cidreq();
if ($is_certificate_mode) {
$action .= '&curdirpath=/certificates&selectcat=1';
}
$form = new FormValidator('formEdit', 'post', $action, null, array('class' => 'form-vertical'));
// Form title

Loading…
Cancel
Save