I was trying to create a user that would only see alerts from certain hostnames, however, no matter was was typed into the hostnames areas, the resultant was the word "hostnames" and no alerts where shown when user logged in.
I found that changing line 92 of item-submit.php to
$hostnames[] = str_replace("hostnames-", "", $_POST[$k]);
instead of
$hostnames[] = str_replace("hostnames-", "", $k);
populated the hostnames correctly and the filter now works.
I was trying to create a user that would only see alerts from certain hostnames, however, no matter was was typed into the hostnames areas, the resultant was the word "hostnames" and no alerts where shown when user logged in.
I found that changing line 92 of item-submit.php to
$hostnames[] = str_replace("hostnames-", "", $_POST[$k]);instead of
$hostnames[] = str_replace("hostnames-", "", $k);populated the hostnames correctly and the filter now works.