Discovered a conflict between the icon module (7.x-1.0-beta3) and the search icon that is rendered by Bootstrap Theme using the search block.

When the icon module is enabled the search icon is missing. See attached.

If I disable the icon module the search icon is rendered.

If it helps here is the html for the search block when the icon module is enabled and the problem exists:

<div class="input-group">

    <input id="edit-search-block-form--2" class="form-control form-text form-search" type="search" maxlength="128" size="15" value="" name="search_block_form" placeholder="Search" title="Enter the terms you wish to search for."></input>
    <span class="input-group-btn">
        <button class="btn btn-default" type="submit"></button>
    </span>

</div>
<button id="edit-submit" class="element-invisible btn btn-primary form-submit" type="submit" value="Search" name="op">

    Search

</button>
<input type="hidden" value="form-V_u1JCCpwiSrhYNr3yvDKHZj2BvUHSbhi4UKcPO3Rd0" name="form_build_id"></input>
<input
CommentFileSizeAuthor
Missing Search Icon.png9.15 KBR-H
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

R-H’s picture

Issue summary: View changes
markhalliwell’s picture

Status: Active » Closed (cannot reproduce)

I'm sorry, but I cannot reproduce this. The only thing this reminds me of is that Bootswatch themes didn't include the fonts for the icons for a while, but that got fixed:
https://github.com/MaxCDN/bootstrap-cdn/issues/177

I noticed you marked this as rc2, try the latest dev snapshot?
http://drupalcode.org/project/bootstrap.git/snapshot/refs/heads/7.x-3.x....

markhalliwell’s picture

Title: Search Icon Missing with Icon Module Enabled » _bootstrap_icon() doesn't always return markup
Version: 7.x-3.0-rc2 » 7.x-3.x-dev
Status: Closed (cannot reproduce) » Active

Actually, I just realized that #2120479: Icon API support does not work if admin theme is not Bootstrap and fonts not downloaded was only part of the fix, we need to fix _bootstrap_icon() to detect if we even have the Bootstrap icon bundle available, otherwise it'll just return nothing.

markhalliwell’s picture

Status: Active » Fixed

Committed 4c71e9e to 7.x-3.x:

Issue #2137071 by Mark Carver, R-H: _bootstrap_icon() doesn't always return markup.

R-H’s picture

I've updated to the latest dev version. Original problem of search icon disappearing is fixed. New problem: 2 icons displayed. I can't attach an image to this comment since I don't know how to host one on Drupal. I'll post a new issue. Can you tell me how to host an image on D.O?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Andru’s picture

Same issue 2018 - latest versions of Icon, Fontello and Bootstrap on 7.58 - the search icon does not appear unless I disable Icon module.
Quick cosmetic fix was to hardcode the search icon into the search block template to keep the appearance the same as before.