Add qf search param
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 1 May 2017 20:19:59 +0000 (16:19 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 1 May 2017 20:19:59 +0000 (16:19 -0400)
For the search

models/front/apis/golfclubDirectory.php

index c2b6fbf..5ba0da0 100644 (file)
@@ -56,6 +56,9 @@ class GlmMembersFront_apis_golfclubDirectory
         // Setup the url.
         $url = $directoryUrl . 'Directory.php';
         $urlParams = array();
+        if ( isset( $_REQUEST['_qf__SearchForm'] ) ) {
+            $urlParams[] = '_qf__SearchForm=' . $_REQUEST['_qf__SearchForm'];
+        }
         if ( isset( $_REQUEST['fname'] ) ) {
             $urlParams[] = 'fname=' . $_REQUEST['fname'];
         }