Changed default to switched on.
This commit is contained in:
@@ -163,8 +163,8 @@ const findRealEstatesForSearchRequest = async (searchRequest, maxResults) => {
|
|||||||
[Op.and]: geoSearchQueryPart
|
[Op.and]: geoSearchQueryPart
|
||||||
};
|
};
|
||||||
|
|
||||||
//Is user checked includeWithoutPrice TRUE then it should return null values of price
|
//Is user unchecked includeWithoutPrice FALSE then it shouldn't return null values of price
|
||||||
//If not then only check for price max and min (this is DEFAULT)
|
//If not then null values are accepted (this is DEFAULT)
|
||||||
//includeIncpompleteAds does not have effect on price query
|
//includeIncpompleteAds does not have effect on price query
|
||||||
if (includeWithoutPrice) {
|
if (includeWithoutPrice) {
|
||||||
query.price = {
|
query.price = {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module.exports = {
|
|||||||
up: (queryInterface, Sequelize) => {
|
up: (queryInterface, Sequelize) => {
|
||||||
return queryInterface.addColumn("SearchRequests", "includeWithoutPrice", {
|
return queryInterface.addColumn("SearchRequests", "includeWithoutPrice", {
|
||||||
type: Sequelize.BOOLEAN,
|
type: Sequelize.BOOLEAN,
|
||||||
defaultValue: false
|
defaultValue: true
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,8 @@
|
|||||||
<p class="distinguished">
|
<p class="distinguished">
|
||||||
<label class="checkbox-label">
|
<label class="checkbox-label">
|
||||||
<input type="checkbox" class="filled-in" name="includeWithoutPrice"
|
<input type="checkbox" class="filled-in" name="includeWithoutPrice"
|
||||||
<% if (includeWithoutPrice) { %>
|
checked
|
||||||
checked
|
>
|
||||||
<% } %>>
|
|
||||||
<span>Uključi i oglase bez cijene</span>
|
<span>Uključi i oglase bez cijene</span>
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user