Skip to content

Commit 2c9f8d2

Browse files
author
Daniel Fernández Giménez
committed
añadido filtro de periodo para las tareas dentro del proyecto
1 parent be46b71 commit 2c9f8d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Controller/EditProyecto.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ protected function createViewsTasks(string $viewName = 'ListTareaProyecto'): voi
425425
->addSearchFields(['descripcion', 'nombre']);
426426

427427
// filters
428-
$this->views[$viewName]->addFilterPeriod('fecha', 'date', 'fecha');
428+
$this->views[$viewName]->addFilterPeriod('fecha', 'start-date', 'fecha');
429+
$this->views[$viewName]->addFilterPeriod('fechafin', 'end-date', 'fechafin');
429430

430431
$status = $this->codeModel->all('tareas_fases', 'idfase', 'nombre');
431432
$this->views[$viewName]->addFilterSelect('idfase', 'phase', 'idfase', $status);

Controller/ListTareaProyecto.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ protected function createViewsMine(string $viewName = 'ListTareaProyecto-mine')
6464

6565
// filtros
6666
$this->listView($viewName)
67-
->addFilterPeriod('fecha', 'date', 'tareas.fecha')
67+
->addFilterPeriod('fecha', 'start-date', 'tareas.fecha')
68+
->addFilterPeriod('fechafin', 'end-date', 'tareas.fechafin')
6869
->addFilterAutocomplete('idproyecto', 'project', 'tareas.idproyecto', 'proyectos', 'idproyecto', 'nombre')
6970
->addFilterSelect('idfase', 'phase', 'tareas.idfase', $status);
7071
}

0 commit comments

Comments
 (0)