Problem/Motivation

When we create the feature it works great on the site we created it. When we enable the feature on another site, we get this error along with a few others, all complaining about undefined indexes. The timeline shows up perfectly below the error message.

After re-saving the view, it does not complain about anything. All of the error message are gone. If I revert the view, then the errors comes back.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lily.yan created an issue. See original summary.

lily.yan’s picture

The style plugin sets default options values, in options_definition. Using $this->view->style_option['X'] it does not load the default values, when the view is not in the database. You have to use style_plugin->option['X']. Attached is patch to fix.

WorldFallz’s picture

I'm happy to make this change to fix the feature providing it doesn't adversely affect the non feature implementation. I just need to test it first. Unless some others can report it tests ok without the feature as well.

Liam Morland’s picture

dcam’s picture

FileSize
3.68 KB

Rerolled #2.

dcam’s picture

FileSize
3.17 KB

Checking to see if the problems will be solved with $this instead of the circularly-referential $this->view->style_plugin.

  • dcam committed 2c8c67f on 7.x-1.x
    Issue #2549435 by dcam, lily.yan: Undefined indexes when creating...
dcam’s picture

Status: Needs review » Fixed

Committed #6. Thanks @lily.yan!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.