Skip to content

Commit

Permalink
Corrigindo a duplicidade das aulas em aulas ministradas (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusta-Santos authored Dec 4, 2024
1 parent 4bd4e2d commit 1065124
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [Versão 3.89.204]
- Corrigindo a duplicidade das aulas em aulas ministradas

## [Versão 3.89.203]
- Corrigindo error no tamanho do nome do aluno ao gerar o sagres

Expand Down
3 changes: 2 additions & 1 deletion app/controllers/ClassesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function actionGetClassContents()
->queryAll();

$additionalClasses = Yii::app()->db->createCommand(
"select cc.id, cp.name as cpname, ed.id as edid, ed.name as edname, cc.order, cc.content, cp.id as cpid
"select distinct cc.id, cp.name as cpname, ed.id as edid, ed.name as edname, cc.order, cc.content, cp.id as cpid
from course_class cc
join course_plan cp on cp.id = cc.course_plan_fk
join course_plan_discipline_vs_abilities dvsa on dvsa.course_class_fk = cc.id
Expand All @@ -203,6 +203,7 @@ public function actionGetClassContents()
->bindParam(":users_fk", Yii::app()->user->loginInfos->id)
->queryAll();


$courseClasses = array_merge($courseClasses, $additionalClasses);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
defined('YII_DEBUG') or define('YII_DEBUG', $debug);
defined("SESSION_MAX_LIFETIME") or define('SESSION_MAX_LIFETIME', 3600);

define("TAG_VERSION", '3.89.203');
define("TAG_VERSION", '3.89.204');

define("YII_VERSION", Yii::getVersion());
define("BOARD_MSG", '<div class="alert alert-success">Novas atualizações no TAG. Confira clicando <a class="changelog-link" href="?r=admin/changelog">aqui</a>.</div>');
Expand Down
2 changes: 1 addition & 1 deletion instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$newdb = $domain . '.tag.ong.br';

if ($domain == "localhost") {
$newdb = 'boquim.tag.ong.br';
$newdb = 'demo.tag.ong.br';
}

$_GLOBALGROUP = 0;
Expand Down

0 comments on commit 1065124

Please sign in to comment.