Skip to content

Setting Hosts filter for User #37

@jniven

Description

@jniven

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions