Searching drouting rules by attribute fails - Patch attached
Closed this issue · 4 comments
farmorg commented
Hi all, I noticed that when I search drouting rules by attribute, nothing happened. I did some digging around and managed to fix the problem which seemed to be down to a missing search function.
I added this and it all works :)
$search_attributes=$_SESSION['rules_search_attrs'];
if ($search_attrs!="") {
$sql_search.=" and attrs like ?";
array_push( $sql_vals, "%".$search_attrs."%");
}
I have attached the complete file.
fixed.rules.main.txt
farmorg commented
Attached a patch file.
razvancrainea commented
Can you please submit a pull request? It would be easier for us to accept the fix.
bogdan-iancu commented
PR accepted, issue fixed, thanks @farmorg