Exporting a view from one site and importing to another messes with the following data:-

* node: type - is one of filter - nothing is selected in the list
* node: title - contains any word filter - encloses the whole string in single quotes.

Comments

merlinofchaos’s picture

Can you paste the sections of the view that are exporting incorrectly for me?

budda’s picture

The 0 => \'aggregator-item\', seems to get ignored on import, thus the view display anything because the 'node type' is not defined.

'value' => '\'voucher coupon token "discount code"\'', is enclosing the whole string in single quotes on import - not sure if this is bad - but it's not duplicating the display in the original view, so not strictly a "clone" of the view.

<?php
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '\'1\'',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => 'array (
  0 => \'aggregator-item\',
)',
    ),
    array (
      'tablename' => 'node',
      'field' => 'title',
      'operator' => 'word',
      'options' => '',
      'value' => '\'voucher coupon token "discount code"\'',
    ),
  );
?>
merlinofchaos’s picture

Ok, it looks like 'value' might be exporting incorrectly now. Darnit.

merlinofchaos’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)