master
Skylar Ittner 4 years ago
parent bcf91412f9
commit e1fd83ee78

@ -36,8 +36,8 @@ if ($VARS["action"] != "lookup") {
if (!empty($VARS["model"])) {
$machine->setModel($VARS['model']);
}
if (!empty($VARS["client"])) {
$machine->setClientID($VARS['client']);
if (!empty($VARS["clientid"])) {
$machine->setClientID($VARS['clientid']);
}
if (!empty($VARS["os"])) {
$machine->setOS($VARS['os']);

@ -24,7 +24,7 @@ $APIS = [
"id" => "/^[0-9a-z]+$/",
"type (optional)" => "numeric",
"model (optional)" => "string",
"client (optional)" => "string",
"clientid (optional)" => "string",
"os (optional)" => "string",
"serial (optional)" => "string",
"manufacturer (optional)" => "string",
@ -39,7 +39,7 @@ $APIS = [
"vars" => [
"type (optional)" => "numeric",
"model (optional)" => "string",
"client (optional)" => "string",
"clientid (optional)" => "string",
"os (optional)" => "string",
"serial (optional)" => "string",
"manufacturer (optional)" => "string",

@ -68,7 +68,7 @@ class Machine implements JsonSerializable {
"components" => $this->components,
"formdata" => [
"options" => [
"clientid" => Clients::getAllAsIDNameArray(),
"clientid" => array_merge(["" => ""], Clients::getAllAsIDNameArray()),
"type" => Machine::getTypeList()
],
"inputtypes" => [

Loading…
Cancel
Save