Ticket #130: searchfolders.patch

File searchfolders.patch, 1.0 kB (added by sameerdcosta@…, 3 years ago)

just something that works for me.

  • cls/search.php

     
    159159         
    160160                 
    161161                if ($this->channelId != ALL_CHANNELS_ID) { 
    162                         $qWhere .= " and c.id = " . $this->channelId  . " "; 
     162                        $qWhere .= " and ( c.id = " . $this->channelId  . " or c.parent = " . $this->channelId . " ) "; 
    163163                } 
    164164         
    165165                if (hidePrivate()) { 
  • cls/wrappers/searchform.php

     
    9393                                $parent_ = LBL_HOME_FOLDER; 
    9494                        } 
    9595                        $ret .= "\t\t\t<optgroup label=\"$parent_ /\">\n"; 
     96                        $ret .= "\t\t\t\t<option value=\"$parent_id_\"".  
     97                        ((array_key_exists(QUERY_CHANNEL, $_REQUEST) && $_REQUEST[QUERY_CHANNEL] == $parent_id_) ?  
     98                        " selected=\"selected\"" : "").">* All $parent_ feeds *</option>\n"; 
     99 
    96100                        $prev_parent = $parent_id_; 
    97101                } 
    98102