Fixed 'FF timeout' field is not shown when creating a data module from

the console.
This commit is contained in:
Junichi Satoh 2014-09-13 08:53:56 +09:00
parent 1f4f1942c0
commit 5a0c7ad9ea
1 changed files with 3 additions and 2 deletions

View File

@ -401,12 +401,13 @@ $table_advanced->colspan[5][1] = 2;
$table_advanced->data[5][3] = __('FF timeout') . ' ' . ui_print_help_icon ('ff_timeout', true);
$module_type_name = modules_get_type_name($id_module_type);
$table_advanced->data[5][4] = '';
if (preg_match ('/async/', $module_type_name) || $edit) {
$table_advanced->data[5][4] = '<span id="ff_timeout">' . html_print_input_text ('ff_timeout', $ff_timeout,
$table_advanced->data[5][4] .= '<span id="ff_timeout">' . html_print_input_text ('ff_timeout', $ff_timeout,
'', 5, 10, true, $disabledBecauseInPolicy).ui_print_help_tip (__('Timeout in secs from start of flip flop counting. If this value is exceeded, FF counter is reset. Set to 0 for no timeout.'), true) . '</span>';
}
if (!preg_match ('/async/', $module_type_name) || $edit) {
$table_advanced->data[5][4] = '<span id="ff_timeout_disable">' . __('Disabled') . ui_print_help_tip (__('This value can be set only in the async modules.'), true) . '</span>';
$table_advanced->data[5][4] .= '<span id="ff_timeout_disable">' . __('Disabled') . ui_print_help_tip (__('This value can be set only in the async modules.'), true) . '</span>';
}
/* Tags */