Merge branch 'ent-11276-widget-agent-module-view-muestra-inicialmente-todos-los-agentes' into 'develop'
Ent 11276 widget agent module view muestra inicialmente todos los agentes See merge request artica/pandorafms!5923
This commit is contained in:
commit
b7b7d2b705
|
@ -279,13 +279,26 @@ class AgentModuleWidget extends Widget
|
||||||
$return_all_group = true;
|
$return_all_group = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$mgroup = '';
|
||||||
|
if (isset($this->values['mGroup']) === false) {
|
||||||
|
$sql = sprintf(
|
||||||
|
'SELECT id_group FROM tdashboard WHERE id = %d',
|
||||||
|
$this->dashboardId
|
||||||
|
);
|
||||||
|
|
||||||
|
$group_dahsboard = db_get_value_sql($sql);
|
||||||
|
if ($group_dahsboard > 0) {
|
||||||
|
$mgroup = $group_dahsboard;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$inputs[] = [
|
$inputs[] = [
|
||||||
'class' => 'flex flex-row',
|
'class' => 'flex flex-row',
|
||||||
'id' => 'select_multiple_modules_filtered',
|
'id' => 'select_multiple_modules_filtered',
|
||||||
'arguments' => [
|
'arguments' => [
|
||||||
'type' => 'select_multiple_modules_filtered',
|
'type' => 'select_multiple_modules_filtered',
|
||||||
'uniqId' => $this->cellId,
|
'uniqId' => $this->cellId,
|
||||||
'mGroup' => (isset($this->values['mGroup']) === true) ? $this->values['mGroup'] : '',
|
'mGroup' => (isset($this->values['mGroup']) === true) ? $this->values['mGroup'] : $mgroup,
|
||||||
'mRecursion' => (isset($this->values['mRecursion']) === true) ? $this->values['mRecursion'] : '',
|
'mRecursion' => (isset($this->values['mRecursion']) === true) ? $this->values['mRecursion'] : '',
|
||||||
'mModuleGroup' => (isset($this->values['mModuleGroup']) === true) ? $this->values['mModuleGroup'] : '',
|
'mModuleGroup' => (isset($this->values['mModuleGroup']) === true) ? $this->values['mModuleGroup'] : '',
|
||||||
'mAgents' => (isset($this->values['mAgents']) === true) ? $this->values['mAgents'] : '',
|
'mAgents' => (isset($this->values['mAgents']) === true) ? $this->values['mAgents'] : '',
|
||||||
|
|
Loading…
Reference in New Issue