mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-4166-No-se-añade-module_unit-personalizado' into 'develop'
Fixed bug in custom unit #4166 See merge request artica/pandorafms!2675
This commit is contained in:
commit
3eadb07058
@ -1385,11 +1385,7 @@ if ($update_module || $create_module) {
|
|||||||
$ff_type = (int) get_parameter('ff_type');
|
$ff_type = (int) get_parameter('ff_type');
|
||||||
$each_ff = (int) get_parameter('each_ff');
|
$each_ff = (int) get_parameter('each_ff');
|
||||||
$ff_timeout = (int) get_parameter('ff_timeout');
|
$ff_timeout = (int) get_parameter('ff_timeout');
|
||||||
$unit = (string) get_parameter('unit_select');
|
$unit = (string) get_parameter('unit');
|
||||||
if ($unit == 'none') {
|
|
||||||
$unit = (string) get_parameter('unit_text');
|
|
||||||
}
|
|
||||||
|
|
||||||
$id_tag = (array) get_parameter('id_tag_selected');
|
$id_tag = (array) get_parameter('id_tag_selected');
|
||||||
$serialize_ops = (string) get_parameter('serialize_ops');
|
$serialize_ops = (string) get_parameter('serialize_ops');
|
||||||
$critical_instructions = (string) get_parameter('critical_instructions');
|
$critical_instructions = (string) get_parameter('critical_instructions');
|
||||||
|
@ -1930,11 +1930,7 @@ function process_manage_edit($module_name, $agents_select=null, $module_status='
|
|||||||
|
|
||||||
case 'unit_select':
|
case 'unit_select':
|
||||||
if ($value != -1) {
|
if ($value != -1) {
|
||||||
if ($value == 'none') {
|
$values['unit'] = (string) get_parameter('unit');
|
||||||
$values['unit'] = (string) get_parameter('unit_text');
|
|
||||||
} else {
|
|
||||||
$values['unit'] = $value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user