alsmanager_lib 3.0.153 → 3.0.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/modules.js +4 -4
  2. package/package.json +1 -1
package/lib/modules.js CHANGED
@@ -3183,7 +3183,7 @@ function getDevicesByDetailsSelectSQLite(search_criteria, details) {
3183
3183
  query += "left join device_gestioni dg on d.id = dg.id_device ";
3184
3184
  if (search_criteria.in_consegna)
3185
3185
  query += "left join consegna_beni cb on d.id = cb.id_bene ";
3186
- if (details) {
3186
+ if (details && details != null) {
3187
3187
  if (search_criteria.dev_type == "DESKTOP" || search_criteria.dev_type == "NOTEBOOK" || search_criteria.dev_type == "TABLET" || search_criteria.dev_type == "SMART TV" || search_criteria.dev_type == "SERVER") {
3188
3188
  query += "left join device_pc dd on d.id = dd.id_device ";
3189
3189
  }
@@ -3276,7 +3276,7 @@ function getDevicesByDetailsSelectSQLite(search_criteria, details) {
3276
3276
  }
3277
3277
 
3278
3278
  // Filtro su dettagli...
3279
- if (details) {
3279
+ if (details && details != null) {
3280
3280
  if (search_criteria.dev_type == "DESKTOP" || search_criteria.dev_type == "NOTEBOOK" || search_criteria.dev_type == "TABLET" || search_criteria.dev_type == "SMART TV" || search_criteria.dev_type == "SERVER") {
3281
3281
  where_clause += " and ";
3282
3282
  if (details.os) {
@@ -3358,7 +3358,7 @@ function getDevicesByDetailsSelectMySQL(search_criteria, details) {
3358
3358
  if (search_criteria.in_consegna)
3359
3359
  query += "left join consegna_beni cb on d.id = cb.id_bene ";
3360
3360
 
3361
- if (details) {
3361
+ if (details && details != null) {
3362
3362
  if (search_criteria.dev_type == "DESKTOP" || search_criteria.dev_type == "NOTEBOOK" || search_criteria.dev_type == "TABLET" || search_criteria.dev_type == "SMART TV" || search_criteria.dev_type == "SERVER") {
3363
3363
  query += "left join device_pc dd on d.id = dd.id_device ";
3364
3364
  }
@@ -3452,7 +3452,7 @@ function getDevicesByDetailsSelectMySQL(search_criteria, details) {
3452
3452
 
3453
3453
 
3454
3454
  // Filtro su dettagli...
3455
- if (details) {
3455
+ if (details && details != null) {
3456
3456
  if (search_criteria.search_type == "DESKTOP" || search_criteria.search_type == "NOTEBOOK" || search_criteria.search_type == "TABLET" || search_criteria.search_type == "SMART TV" || search_criteria.search_type == "SERVER") {
3457
3457
  where_clause += " and ";
3458
3458
  if (details.os) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "3.0.153",
7
+ "version": "3.0.154",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",