Plugin Directory

Changeset 2514553


Ignore:
Timestamp:
04/14/2021 04:12:02 AM (5 years ago)
Author:
joanv
Message:

update tag search + fix search bug

Location:
jobsearch
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • jobsearch/frontEnd/search/jobFormSearch.php

    r2510924 r2514553  
    215215        $htmlTags3 = '';
    216216        $htmlTags4 = '';
     217
    217218        $tags1 = $helper->getTagsField(1, $getParameter["tags"]);
    218219        $tags2 = $helper->getTagsField(2, $getParameter["tags"]);
  • jobsearch/helper/GlobalLoader.php

    r2510933 r2514553  
    6262            // job form
    6363            if($attributes['type'] != 'apply' && $attributes['jobId'] == ''){
    64                 if($attributes['send'] != true && $attributes['searchHidden'] != true){
     64                if( $attributes['searchHidden'] != true){
    6565                    $this->tdb_jb_get_opt_api($attributes['api'], "search");
    6666                    $jobFormSearch->tdb_jb_show($attributes, $urlArray);
     
    117117        // search form
    118118        if ($attributes['type'] <> 'apply' && $attributes['jobId']  == '') {
    119             if((isset($_GET["send"]) && isset($_GET['searchHidden']) && $_GET['searchHidden'] == 'true') == false){
     119            // show the search only if search hidden is not set to true
     120
     121            if((isset($_GET['searchHidden']) && $_GET['searchHidden'] == 'true') == false){
    120122                $this->tdb_jb_get_opt_api($attributes['api'] , "search");
    121 
    122123                $urlArray = $helper->tdb_jb_get_page_link();
    123124                $jobFormSearch->tdb_jb_show($attributes, $urlArray);
  • jobsearch/helper/helper.php

    r2510924 r2514553  
    18381838    }
    18391839
    1840     /* tags for the search form */
    1841     function getTagsField($number, $getParameters){
     1840    /* tags for the search form (number is the tag group order, 1 to 4 now, get parameters is the search result*/
     1841    function getTagsField($number, $tagsGetParameters){
    18421842        global $gGroupTags;
    18431843        global $gTags;
     
    18651865                    // set up the list option
    18661866                    foreach($gTags[$tagGroupSelected] as $id => $name){
    1867                         if(in_array($id, $getParameters)){
     1867                        if(is_array($tagsGetParameters) && in_array($id, $tagsGetParameters)){
    18681868                            $selected = "selected='true' ";
    18691869                        } else {
  • jobsearch/jobsearch.php

    r2510924 r2514553  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.0.0
     5Version: 2.0.1
    66Author: Tamago-DB
    77Text Domain: jobsearch
  • jobsearch/trunk/frontEnd/search/jobFormSearch.php

    r2510924 r2514553  
    215215        $htmlTags3 = '';
    216216        $htmlTags4 = '';
     217
    217218        $tags1 = $helper->getTagsField(1, $getParameter["tags"]);
    218219        $tags2 = $helper->getTagsField(2, $getParameter["tags"]);
  • jobsearch/trunk/helper/GlobalLoader.php

    r2510933 r2514553  
    6262            // job form
    6363            if($attributes['type'] != 'apply' && $attributes['jobId'] == ''){
    64                 if($attributes['send'] != true && $attributes['searchHidden'] != true){
     64                if( $attributes['searchHidden'] != true){
    6565                    $this->tdb_jb_get_opt_api($attributes['api'], "search");
    6666                    $jobFormSearch->tdb_jb_show($attributes, $urlArray);
     
    117117        // search form
    118118        if ($attributes['type'] <> 'apply' && $attributes['jobId']  == '') {
    119             if((isset($_GET["send"]) && isset($_GET['searchHidden']) && $_GET['searchHidden'] == 'true') == false){
     119            // show the search only if search hidden is not set to true
     120
     121            if((isset($_GET['searchHidden']) && $_GET['searchHidden'] == 'true') == false){
    120122                $this->tdb_jb_get_opt_api($attributes['api'] , "search");
    121 
    122123                $urlArray = $helper->tdb_jb_get_page_link();
    123124                $jobFormSearch->tdb_jb_show($attributes, $urlArray);
  • jobsearch/trunk/helper/helper.php

    r2510924 r2514553  
    18381838    }
    18391839
    1840     /* tags for the search form */
    1841     function getTagsField($number, $getParameters){
     1840    /* tags for the search form (number is the tag group order, 1 to 4 now, get parameters is the search result*/
     1841    function getTagsField($number, $tagsGetParameters){
    18421842        global $gGroupTags;
    18431843        global $gTags;
     
    18651865                    // set up the list option
    18661866                    foreach($gTags[$tagGroupSelected] as $id => $name){
    1867                         if(in_array($id, $getParameters)){
     1867                        if(is_array($tagsGetParameters) && in_array($id, $tagsGetParameters)){
    18681868                            $selected = "selected='true' ";
    18691869                        } else {
  • jobsearch/trunk/jobsearch.php

    r2510924 r2514553  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.0.0
     5Version: 2.0.1
    66Author: Tamago-DB
    77Text Domain: jobsearch
Note: See TracChangeset for help on using the changeset viewer.