Steps to re-create:

1. Create filter (mine was node title field)
2. Set "Unlock operator" to unchecked
3. Export view.
4. Revert view to use exported version
5. Check view on notice that "Unlock operator" is checked

If I add the following to the export then it works as expected.

$handler->display->display_options['filters']['title']['expose']['use_operator'] = FALSE;

Comments

Ruyman’s picture

Same problem here with version 6.x-3.x-dev.

Whatever we check on "Unlock operator" the code exported is:

$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['use_operator'] = TRUE;

If we comment these lines everything works ok.

dawehner’s picture

Issue tags: +Needs tests

I general this is a issue which is critical so a simpletest would be cool.

Ruyman’s picture

I applied this patch and everything works as expected now.

http://drupal.org/node/933716#comment-3574052

dawehner’s picture

Status: Active » Closed (duplicate)

So this is a duplicate of the other patch. Thanks for figuring this out.

xlyz’s picture

Status: Closed (duplicate) » Active

problem is still present in latest 7.x-3.x-dev version (2011-Jan-29).

merlinofchaos’s picture

Status: Active » Closed (duplicate)

...and it's still a duplicate.