Skip to content
Snippets Groups Projects
Commit 9b8f7f20 authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

Merge branch 'hotfix-year' into 'master'

Add min_year and max_year filters to default rqf in the school route

See merge request !345
parents 9e840490 9455651c
Branches
Tags
4 merge requests!373merge dev -> homologa,!367Add functional version of middleware, add flag to check whether it runs...,!366Add functional version of middleware, add flag to check whether it runs...,!345Add min_year and max_year filters to default rqf in the school route
...@@ -261,6 +261,26 @@ rqf.addField({ ...@@ -261,6 +261,26 @@ rqf.addField({
field: 'ano_censo', field: 'ano_censo',
table: 'escola' table: 'escola'
} }
}).addValue({
name: 'min_year',
table: 'escola',
tableField: 'ano_censo',
resultField: 'year',
where: {
relation: '>=',
type: 'integer',
field: 'ano_censo'
}
}).addValue({
name: 'max_year',
table: 'escola',
tableField: 'ano_censo',
resultField: 'year',
where: {
relation: '<=',
type: 'integer',
field: 'ano_censo'
}
}).addField({ }).addField({
name: 'search', name: 'search',
field: true, field: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment