1. go to admin/locale/string/search

2. type something into the box and hit return

expected result: search results show up

actual result: browser goes to admin/locale/string/search: no search results

Comments

darius’s picture

I can verify that this is a problem (just as described) with the latest CVs version.

pkls’s picture

Title: can't search locale strings » Traced via debugger to this problem

I have the similar problem which I traced via debugger to drupal_get_form function which has another problem located here: http://drupal.org/node/48622

I traced that the form submission of the locale search string uses go_to thereby losing all the POST variables. If the _locale_string_seek_form() function just generated the themed form code instead of redirecting, we would have seen the intended output instead of the same blank form.

From the outset, it looks like the problem is in drupal_get_form function in form.inc. But an expert has to confirm.

pkls’s picture

Title: Traced via debugger to this problem » can't search locale strings

Inadvertantly changed the title in the last post - changing it back.

pkls’s picture

Title: can't search locale strings » can't search locale strings

I fixed it using some crude hack:

In the function "locale_admin_string()" in locale.module

Add "$_POST['edit'] = NULL;" between the following two lines.
line 451: $output = _locale_string_seek();
line 452: $output .= _locale_string_seek_form();

So the above becomes:

line 451: $output = _locale_string_seek();
line 452: $_POST['edit'] = NULL;
line 453: $output .= _locale_string_seek_form();

clearing out the $_POST['edit'] variable after it has already been processed avoids the drupal_goto in _locale_string_seek_form();, so you see the processed output from _locale_string_seek(); which is not wiped out due to the goto function.

Locale search works for me now.

moshe weitzman’s picture

Status: Active » Closed (duplicate)