Closed Bug 413089 Opened 17 years ago Closed 17 years ago

Search bar does not work on SpreadFirefox homepage

Categories

(Websites Graveyard :: spreadfirefox.com, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: pkim, Assigned: mrz)

References

()

Details

Attachments

(1 file)

[Bug] Search bar does not work on SpreadFirefox homepage Posted January 18th, 2008 by jglassenberg When entering a search term in the Search bar on the right-panel of the SpreadFirefox homepage, hitting search just sends me to the main search page. No search results appear, and I have to re-enter the search term on the results page to perform this search.
Looking into this now ...
Assignee: ian-bugzilla → paul
Would you please commit the changes to search/search.module (Committed revision 9714.) There was a problem with the core module search . I needed to take out the line .. $form['#action'] = url('search/node'); from the method search_box(). If we have no further problems with search ill request this changes be patched against the drupal core function search_box($form_id) { // Use search_keys instead of keys to avoid ID conflicts with the search block. $form[$form_id .'_keys'] = array( '#type' => 'textfield', '#size' => 15, '#default_value' => '', '#attributes' => array('title' => t('Enter the terms you wish to search for.')), ); $form['submit'] = array('#type' => 'submit', '#value' => t('Search')); // Always go to the search page since the search form is not guaranteed to be // on every page. $form['#action'] = url('search/node'); $form['#base'] = 'search_box_form'; return $form; }
Assignee: paul → server-ops
Sorry , hold commiting i have broken something.
Assignee: server-ops → paul
Sorry for the delay here guys. The problem i was seeing was only in my localhost drupal cache as was quickly verified by looking at the sandbox on mozilla.com . Would you please push through the change Thanks Paul
Assignee: paul → server-ops
review from webdev and approval from pkim/marketing still needed for push.
Paul can you post the actual diff as an attachment to this bug? Code in bugzilla comments is hard to read.
You can see the patch here .. http://viewvc.svn.mozilla.org/vc/projects/spreadfirefox.com/trunk/modules/search/search.module?r1=5872&r2=9714&view=patch but here it is .. --- projects/spreadfirefox.com/trunk/modules/search/search.module 2007/08/14 21:48:18 5872 +++ projects/spreadfirefox.com/trunk/modules/search/search.module 2008/01/21 14:35:13 9714 @@ -1045,7 +1045,7 @@ $form['submit'] = array('#type' => 'submit', '#value' => t('Search')); // Always go to the search page since the search form is not guaranteed to be // on every page. - $form['#action'] = url('search/node'); + //$form['#action'] = url('search/node'); $form['#base'] = 'search_box_form'; return $form;
and as an attachment
Attachment #298496 - Flags: review+
Posting in the bug as an attachment (and in diff format) makes it easier for reviewing. Thanks. a=morgamic.
Assignee: server-ops → mrz
[root@mradm01 www.spreadfirefox.com]# svn up U modules/sfx/sfx_affiliates/sfx_affiliates.module U modules/search/search.module Updated to revision 9753.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
OS: Mac OS X → All
Hardware: PC → All
Product: Websites → Websites Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: