Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions site/language/en-GB.com_fieldsattachsearch.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ COM_FIELDSATTACHSEARCH_SEARCHLABEL="Title or text search"
COM_FIELDSATTACHSEARCH_N_RESULTS="Results"
PLG_SELECT_PTIONS="Select option"
COM_FIELDSATTACHSEARCH_SEARCH="Search"

SEARCHFIELDSATTACH_NO_SEARCHES_FOUND = "No searches found. Please go to the component and create a new search first, then select it here"
8 changes: 7 additions & 1 deletion site/views/search/fields/searchfieldsattach.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,16 @@ protected function getInput()
}
$html .= '</select>';
}
// no values found, so print a userfriendly message
else {
$html .='<span>';
$html .= JTEXT::_("SEARCHFIELDSATTACH_NO_SEARCHES_FOUND");
$html .='</span>';
}
//$html .= "\n".'<input type="hidden" id="'.$this->id.'" name="'.$this->name.'" value="'.$this->value.'" />';

return $html;
//return JHTML::_('select.genericlist', $articles, $this->name, trim($attr), 'id', 'title', $this->value );

}
}
}