Make admin network picker select, fix bug when saving items
This commit is contained in:
parent
985c79e2b9
commit
50d1ea5dd9
1 changed files with 2 additions and 2 deletions
|
|
@ -681,7 +681,7 @@
|
||||||
{ key: "ts_linked", label: "Timeslots Linked", type: "text" },
|
{ key: "ts_linked", label: "Timeslots Linked", type: "text" },
|
||||||
{ key: "trustee", label: "Trustee", type: "text" },
|
{ key: "trustee", label: "Trustee", type: "text" },
|
||||||
{ key: "ipsc_network", label: "IPSC Network", type: "text" },
|
{ key: "ipsc_network", label: "IPSC Network", type: "text" },
|
||||||
{ key: "network", label: "Network", type: "text" },
|
{ key: "network", label: "Network", type: "select", options: [{ v: "", l: "(none)" }, "Brandmeister", "DMR+", "DMR-MARC", "TGIF", "FreeDMR", "Other"] },
|
||||||
{ key: "hotspot", label: "Hotspot", type: "select", options: [{ v: 0, l: "No" }, { v: 1, l: "Yes" }] },
|
{ key: "hotspot", label: "Hotspot", type: "select", options: [{ v: 0, l: "No" }, { v: 1, l: "Yes" }] },
|
||||||
{ key: "status", label: "Status", type: "text" },
|
{ key: "status", label: "Status", type: "text" },
|
||||||
{ key: "last_seen", label: "Last Seen", type: "readonly" },
|
{ key: "last_seen", label: "Last Seen", type: "readonly" },
|
||||||
|
|
@ -803,7 +803,7 @@
|
||||||
} else {
|
} else {
|
||||||
data[key] = parseInt(val, 10) || 0;
|
data[key] = parseInt(val, 10) || 0;
|
||||||
}
|
}
|
||||||
} else if (field.type === "select" && typeof field.options[0] === "object") {
|
} else if (field.type === "select" && typeof field.options[0] === "object" && typeof field.options[0].v === "number") {
|
||||||
data[key] = parseInt(val, 10) || 0;
|
data[key] = parseInt(val, 10) || 0;
|
||||||
} else {
|
} else {
|
||||||
data[key] = val;
|
data[key] = val;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue