Merge branch 'ent-8054-12471-Conteo-erroneo-de-agentes-para-licenciamiento' into 'develop'

fixed count

See merge request artica/pandorafms!4441
This commit is contained in:
Daniel Rodriguez 2021-10-06 08:34:13 +00:00
commit a674aeeb91

View File

@ -1652,9 +1652,9 @@ class DiscoveryTaskList extends HTML
$license = enterprise_hook('license_get_info'); $license = enterprise_hook('license_get_info');
if (is_array($license) === true if (is_array($license) === true
&& $n_agents > ($license['limit'] - $license['count']) && $n_agents > ($license['limit'] - $license['count_enabled'])
) { ) {
$limit = ($license['limit'] - $license['count']); $limit = ($license['limit'] - $license['count_enabled']);
echo json_encode( echo json_encode(
[ [
'error' => __( 'error' => __(