Steve Beaver wrote:
... clicked the blank choice at the top of the selector to unselect everything and saved again. All of the services were properly reported.
I don't have a blank option at the top of the list, I have:
apinger
captiveportal
miniupnpd
ntpd
sshd
unbound
vmware-guestd
So, I created another VM, I have not installed any packages etc., I have only configure WAN and LAN, the services listed in the widget are:
apinger
ntpd
unbound
There is no blank at the top of the list, looking at the code for services_status.widget.php shows the <OPTION> tag is wrapped in a PHP foreach statement and I cannot see how there could be a blank:
<form action="/widgets/widgets/services_status.widget.php" method="post" class="form-horizontal">
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Hidden services</label>
<div class="col-sm-6">
<select multiple name="servicestatusfilter[]" class="form-control" height="5">
<?php foreach ($services as $service): ?>
<option <?=(in_array($service['name'], $skipservices)?'selected':'')?>><?=$service['name']?></option>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-6">
<button type="submit" class="btn btn-default">Save</button>
</div>
</div>
</form>
Any suggestions?