Project

General

Profile

Bug #7396

Agenda

Added by Tomas Rodrigues over 4 years ago. Updated over 4 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
Agenda
Target version:
Start date:
13/11/2014
Due date:
% Done:

100%

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

Description

Olá,
A ferramenta agenda esta com restrição de acesso ao seguir esses passos.
Vai até agenda. Clique em agenda lista. Depois tente voltar pelo link agenda/eventos que fica em cima dos ícones.
Você recebera a mensagem que, mesmo como administrador, não é permitido seu acesso.
Testei em:
https://stable.chamilo.org/index.php
https://campus.chamilo.org/
Para confirmar.
att.
Marcelo Bassuma

History

#1

Updated by Daniel Barreto over 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Daniel Barreto
#2

Updated by Daniel Barreto over 4 years ago

  • % Done changed from 0 to 60

This problem occurs because of the breadcrumb URL, breadcrumb method adds cidReq parameters, these are should be only used inside a course, but my agenda tool is out.

Send PR429
https://github.com/chamilo/chamilo-lms/pull/429

#3

Updated by Tomas Rodrigues over 4 years ago

Oi,
Já modifiquei os arquivos. Esta funcionado muito bem.
Obrigado
Marcelo Bassuma

#4

Updated by Daniel Barreto over 4 years ago

Update PR429
https://github.com/chamilo/chamilo-lms/pull/429

Add commit to fix course agenda tool


--- a/main/calendar/agenda_js.php
+++ b/main/calendar/agenda_js.php
@ -41,7 +41,7 @ if (api_is_platform_admin() && ($type 'admin' || $type 'platform')) {
}

if (isset($_REQUEST['cidReq']) && !empty($_REQUEST['cidReq'])) {
- if ($_REQUEST['cidReq'] < 1) {
+ if ($_REQUEST['cidReq'] == -1) {
// When is out of the course tool (e.g My agenda)
header('Location: ' . api_get_self());
exit;
#5

Updated by Yannick Warnier over 4 years ago

  • Tracker changed from Support to Bug
  • Status changed from Assigned to Bug resolved
  • % Done changed from 60 to 100

Merged and approved.

Also available in: Atom PDF