alsmanager_lib 3.0.149 → 3.0.151
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.
- package/lib/modules.js +18 -9
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -3285,7 +3285,7 @@ function getDevicesByDetailsSelectSQLite(search_criteria, details) {
|
|
|
3285
3285
|
where_clause += " and ";
|
|
3286
3286
|
}
|
|
3287
3287
|
}
|
|
3288
|
-
if (details.
|
|
3288
|
+
if (details.version) {
|
|
3289
3289
|
where_clause += "(dd.version = '" + details.version + "') ";
|
|
3290
3290
|
if (details.storage || details.addon || details.network || details.mac_address || details.name) {
|
|
3291
3291
|
where_clause += " and ";
|
|
@@ -3461,7 +3461,7 @@ function getDevicesByDetailsSelectMySQL(search_criteria, details) {
|
|
|
3461
3461
|
where_clause += " and ";
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
|
-
if (details.
|
|
3464
|
+
if (details.version) {
|
|
3465
3465
|
where_clause += "(dd.version = '" + details.version + "') ";
|
|
3466
3466
|
if (details.storage || details.addon || details.network || details.mac_address || details.name) {
|
|
3467
3467
|
where_clause += " and ";
|
|
@@ -3645,13 +3645,22 @@ function createDeviceSelectObj(search_type, inv_code, dev_type, marca, dev_model
|
|
|
3645
3645
|
|
|
3646
3646
|
function createDetailsObj(os, version, storage, addon, network, mac_address, name) {
|
|
3647
3647
|
var objDetails = {};
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3648
|
+
// Init
|
|
3649
|
+
|
|
3650
|
+
if (os)
|
|
3651
|
+
objDetails.os = os;
|
|
3652
|
+
if (version)
|
|
3653
|
+
objDetails.version = version;
|
|
3654
|
+
if (storage)
|
|
3655
|
+
objDetails.storage = storage;
|
|
3656
|
+
if (addon)
|
|
3657
|
+
objDetails.addon = addon;
|
|
3658
|
+
if (network)
|
|
3659
|
+
objDetails.network = network;
|
|
3660
|
+
if (mac_address)
|
|
3661
|
+
objDetails.mac_address = mac_address;
|
|
3662
|
+
if (name)
|
|
3663
|
+
objDetails.name = name;
|
|
3655
3664
|
|
|
3656
3665
|
return objDetails;
|
|
3657
3666
|
}
|