Project

General

Profile

« Previous | Next » 

Revision 5a1d67b1

Added by Jack Booth over 8 years ago

Bug #7164 Limit NTP time source fields to the maximum number saved to configuration.

View differences:

src/usr/local/www/services_ntpd.php
227 227
$auto_pool_suffix = "pool.ntp.org";
228 228
for ($counter=0; $counter < $maxrows; $counter++) {
229 229
	$group = new Form_Group($counter == 0 ? 'Time Servers':'');
230
	$group->addClass('repeatable');
230
    $group->addClass('repeatable');
231
    $group->setAttribute('max_repeats', NUMTIMESERVERS);
232
    $group->setAttribute('max_repeats_alert', NUMTIMESERVERS . ' is the maximum number of configured servers.');
231 233

  
232 234
	$group->add(new Form_Input(
233 235
		'server' . $counter,

Also available in: Unified diff