mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
#8788 min number limit
This commit is contained in:
parent
ad957c5a72
commit
8ccd5ad8cb
@ -256,16 +256,18 @@ $table->style[0] = 'font-weight: bold';
|
|||||||
$table->size[0] = '70%';
|
$table->size[0] = '70%';
|
||||||
$table->size[1] = '30%';
|
$table->size[1] = '30%';
|
||||||
|
|
||||||
// enterprise_hook('enterprise_warnings_history_days');
|
|
||||||
$table->data[1][0] = __('Max. days before delete events');
|
$table->data[1][0] = __('Max. days before delete events');
|
||||||
|
$table->data[1][1] = html_print_input(
|
||||||
$table->data[1][1] = html_print_input_text(
|
[
|
||||||
'event_purge',
|
'type' => 'number',
|
||||||
$config['event_purge'],
|
'size' => 5,
|
||||||
'',
|
'max' => 99999,
|
||||||
5,
|
'name' => 'event_purge',
|
||||||
5,
|
'value' => $config['event_purge'],
|
||||||
true
|
'return' => true,
|
||||||
|
'min' => ((((bool) $config['history_event_enabled'] === true) && $config['history_event_days'] > 0) ? $config['history_event_days'] + 1 : null),
|
||||||
|
'style' => 'width:43px',
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data[2][0] = __('Max. days before delete traps');
|
$table->data[2][0] = __('Max. days before delete traps');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user