Announcement

Collapse
No announcement yet.

Strange search_common behavior ... two "selected" options?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange search_common behavior ... two "selected" options?

    Note: This is on the "seach multiple content types" tab...

    I was looking at the search_common template to change the default sort results by option to date (instead of relevance) and found the following. It looks like date is already selected="selected" in the search_common template, but for some reason, when you display the page, it renders out a second selected="selected" option for relevance (so there are two and by default the second overrides the first).

    Is this normal behavior? I would think there should only be one selected="selected" option...

    Code:
    <ul class="multifield group">
    
    	<li>
    
    
    	<select name="sortby" tabindex="1">
    
    
    	<option value="title">Title</option>
    
    
    	<option value="dateline" selected="selected">Date</option>
    
    
    	<option value="user">User Name</option>
    
    
    	<option value="relevance" selected="selected">Relevance</option>
    
    
    	</select>
    
    
    	</li>
    
    
    	<li>
    
    
    	<select name="order" tabindex="1">
    
    
    	<option value="descending" selected="selected">in Descending Order</option>
    
    
    	<option value="ascending">in Ascending Order</option>
    
    
    	</select>
    
    
    	</li>
    
    </ul>
    For the time being, I commented out the <option value="relevance" selected="selected">Relevance</option> ... but I just wanted to see if this was normal behavior.
    Kevlar
    Bimmerforums - The Ultimate BMW Forum

  • #2
    I can confirm this on my own site:
    Code:
    <option value="dateline" selected="selected" >Date</option>
    <option value="user" >User Name</option>
    <option value="relevance" selected="selected">Relevance</option>
    You might want to add your comments to this tracker entry:
    http://tracker.vbulletin.com/browse/VBIV-2177
    As i think that's related to this.
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.6.3 Demo
    AdminAmmo - My Cloud Demo

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X