Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
» Re: [drupal-devel] bug #1852 : title module's search functionality does not work
On 5 Jun 2003, Dries wrote:
> 05/06/2003 - 09:18 : Dries
> The title module's search functionality does not work when
> register_globals is turned off.
I think we already discussed this.
title.module used to set the global variable $keys, but now search_data
expects this variable to be in $_POST["keys"].
I think Al posted a solution for this.
works for me with latest cvs (yes, with register_globals turned off).
what doesn't work is the call to get_node_from_nid($node->nid) at line 25, because this function got removed again [1]. just removing this line makes it work again (because node_show() calls node_view() which doesn't care if it gets passed an array or an object - array2object() also makes objects to objects
ink" alt="Eye-w
ink" />).
Dries assures that we are using latest title.module at drupal.org. Not sure if we are using latest common.inc and search.module which are also involved.
The patches might fix the problem but make the search module even more clumpsy: adding a $keys parameter is excellent however we should remove all occurrences of $keys = $_POST["keys"] but one instead of adding clutter around it ... the caller should resolve the proper $keys; the callee should not overwrite the $keys passed by the caller.
reopening this bug as one more issue remains outstanding. the 'author' field is always empty when looking at a results page like http://drupal.org/title/download for example. the 1 line patch is in my sandbox (005...)
Comments
Comment #1
killes@www.drop.org commentedOn 5 Jun 2003, Dries wrote:
> 05/06/2003 - 09:18 : Dries
> The title module's search functionality does not work when
> register_globals is turned off.
I think we already discussed this.
title.module used to set the global variable $keys, but now search_data
expects this variable to be in $_POST["keys"].
I think Al posted a solution for this.
Cheers,
Gerhard
Comment #2
al commentedComment #3
ax commentedworks for me with latest cvs (yes, with
register_globalsturned off).what doesn't work is the call to
ink" alt="Eye-w
get_node_from_nid($node->nid)at line 25, because this function got removed again [1]. just removing this line makes it work again (becausenode_show()callsnode_view()which doesn't care if it gets passed an array or an object -array2object()also makes objects to objectsink" />).
[1] http://lists.drupal.org/pipermail/drupal-devel/2003-May/025211.html
Comment #4
al commentedLatest patches in CVS should have fixed this.
Please verify this is working and mark CLOSED if so.
Comment #5
al commentedComment #6
moshe weitzman commentedStill busted. Note this link which uses a word found in our current lead story - http://drupal.org/title/remarkably
Dries assures that we are using latest title.module at drupal.org. Not sure if we are using latest common.inc and search.module which are also involved.
Comment #7
moshe weitzman commentedFixed. I've just uploaded a patch for this to my sandbox (see 2 patch files named 006...).
The search functionality in title.module is so handy.
Comment #8
al commentedpls. don't mark fixed 'til it's hit CVS.
Comment #9
dries commentedThe patches might fix the problem but make the search module even more clumpsy: adding a
$keysparameter is excellent however we should remove all occurrences of$keys = $_POST["keys"]but one instead of adding clutter around it ... the caller should resolve the proper$keys; the callee should not overwrite the$keyspassed by the caller.Comment #10
dries commentedThanks for updating your patches Moshe. Committed to CVS. Marking this as "fixed".
Comment #11
moshe weitzman commentedreopening this bug as one more issue remains outstanding. the 'author' field is always empty when looking at a results page like http://drupal.org/title/download for example. the 1 line patch is in my sandbox (005...)
Comment #12
dries commentedFixed in both the HEAD and DRUPAL-4-2-0 branch. Marking it as such.
Comment #13
moshe weitzman commented