mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 14:54:52 +02:00
minor fix review with limitations
This commit is contained in:
parent
5d5ccf9a6e
commit
d5faabbff5
@ -466,7 +466,8 @@ class HostDevices extends Wizard
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id_network_profile = get_parameter('id_network_profile', []);
|
$id_network_profile = get_parameter('id_network_profile', []);
|
||||||
$review_results = get_parameter_switch('review_results', -1);
|
$review_results = get_parameter_switch('review_results');
|
||||||
|
$review_limited = (bool) get_parameter('review_limited', 0);
|
||||||
$auto_monitor = get_parameter_switch('auto_monitor');
|
$auto_monitor = get_parameter_switch('auto_monitor');
|
||||||
$autoconf_enabled = get_parameter_switch(
|
$autoconf_enabled = get_parameter_switch(
|
||||||
'autoconfiguration_enabled'
|
'autoconfiguration_enabled'
|
||||||
@ -504,17 +505,17 @@ class HostDevices extends Wizard
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($review_results < 0) {
|
if ($review_limited === true) {
|
||||||
// License limited, force review.
|
// License limited, force review.
|
||||||
$this->task['review_mode'] = DISCOVERY_REVIEW;
|
$this->task['review_mode'] = DISCOVERY_REVIEW;
|
||||||
}
|
|
||||||
|
|
||||||
if ($review_results) {
|
|
||||||
if ($this->task['review_mode'] != DISCOVERY_RESULTS) {
|
|
||||||
$this->task['review_mode'] = DISCOVERY_REVIEW;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$this->task['review_mode'] = DISCOVERY_STANDARD;
|
if ($review_results) {
|
||||||
|
if ($this->task['review_mode'] != DISCOVERY_RESULTS) {
|
||||||
|
$this->task['review_mode'] = DISCOVERY_REVIEW;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$this->task['review_mode'] = DISCOVERY_STANDARD;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->task['auto_monitor'] = $auto_monitor;
|
$this->task['auto_monitor'] = $auto_monitor;
|
||||||
@ -1105,6 +1106,16 @@ class HostDevices extends Wizard
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Review limited.
|
||||||
|
$form['inputs'][] = [
|
||||||
|
'arguments' => [
|
||||||
|
'name' => 'review_limited',
|
||||||
|
'type' => 'hidden',
|
||||||
|
'return' => true,
|
||||||
|
'value' => (($limited === true) ? 1 : 0),
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
if (enterprise_installed() === true) {
|
if (enterprise_installed() === true) {
|
||||||
// Input: Enable auto configuration.
|
// Input: Enable auto configuration.
|
||||||
$form['inputs'][] = [
|
$form['inputs'][] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user