Export Movements to CSV File

fix Visibility for a Circuit
This commit is contained in:
Paolo Arena
2022-09-19 14:37:57 +02:00
parent bcb276518f
commit c19fb44ffb
7 changed files with 61 additions and 23 deletions

View File

@@ -45,8 +45,13 @@ const CircuitSchema = new Schema({
type: Number,
}],
pub_to_share: {
type: Number, // PUB_TO_SHARE_ALL, PUB_TO_SHARE_ONLY_GROUPS_FOLLOW
type: Number, // PUB_TO_SHARE_ALL, PUB_TO_SHARE_ONLY_TABLE_FOLLOW
},
visibility: [
{
type: Number,
},
],
longdescr: {
type: String,
},
@@ -202,9 +207,9 @@ CircuitSchema.statics.getFieldsForSearch = function() {
{field: 'descr', type: tools.FieldType.string}];
};
CircuitSchema.statics.executeQueryTable = function(idapp, params) {
CircuitSchema.statics.executeQueryTable = function(idapp, params, user) {
params.fieldsearch = this.getFieldsForSearch();
return tools.executeQueryTable(this, idapp, params);
return tools.executeQueryTable(this, idapp, params, user);
};
CircuitSchema.statics.getWhatToShow = function(idapp, username) {
@@ -229,6 +234,7 @@ CircuitSchema.statics.getWhatToShow = function(idapp, username) {
symbol: 1,
idCity: 1,
pub_to_share: 1,
visibility: 1,
color: 1,
abbrev: 1,
data_costituz: 1,
@@ -267,6 +273,7 @@ CircuitSchema.statics.getWhatToShow_Unknown = function(idapp, username) {
color: 1,
idCity: 1,
pub_to_share: 1,
visibility: 1,
abbrev: 1,
data_costituz: 1,
photos: 1,