Menu

#37 Show ordered results after a search for SUBNET

Unstable_(example)
open
nobody
search (2)
5
2015-10-27
2015-10-27
No

Miha Petkovsek ,

This patch returns ordered results from a search for subnets:

Version: 1.1.010
phpipam/functions/functions-tools.php
Line 647

--- orig/functions-tools.php 2015-10-27 15:37:35.339198275 -0200
+++ new/functions-tools.php 2015-10-27 15:37:18.431561123 -0200
@@ -644,7 +644,7 @@

 /* set query */
 if($searchTermEdited['low']==0 && $searchTermEdited['high']==0) {
  • $query[] = 'select * from subnets where description like "%'. $searchterm .'%" '.$custom.';';
  • $query[] = 'select * from subnets where description like "%'. $searchterm .'%" '.$custom.' order by subnet ;';
    } else {
    $query[] = 'select * from subnets where description like "%'. $searchterm .'%" or subnet between "'. $searchTermEdited['low'] .'" and "'. $searchTermEdited['high'] .'" '.$custom.';';
    }
    @@ -1279,4 +1279,4 @@

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.