Skip to content

Commit e275b81

Browse files
author
anegtun
committed
Filtrado de calendario por fase
1 parent 6ecf36f commit e275b81

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/config/app.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@
256256
* the following line and set the port accordingly
257257
*/
258258
//'port' => 'non_standard_port_number',
259-
'username' => 'agfg',
260-
'password' => 'agfg',
259+
'username' => 'root',
260+
'password' => 'root',
261261
'database' => 'agfg',
262262
/*
263263
* You do not need to set this flag to use full utf-8 encoding (internal default since CakePHP 3.6).

app/config/info.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22
return [
3-
'agfg.version' => '1.5.2'
3+
'agfg.version' => '1.5.3'
44
];

app/src/Controller/CalendarioController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ private function _getFases($competicion) {
141141
if(!empty($categoria)) {
142142
$conditions['categoria'] = $categoria;
143143
}
144+
$fase = $this->request->getQuery('fase');
145+
if(!empty($fase)) {
146+
$conditions['codigo'] = $fase;
147+
}
144148
return $this->Fases->find()->where($conditions);
145149
}
146150

0 commit comments

Comments
 (0)