Whenever I save a preset I get the following notice.

Notice: Trying to get property of non-object in openlayers_layer_type_openlayers_views_vector->get_features() (line 45 of /Users/frank/web/drupal6/sites/all/modules/openlayers/modules/openlayers_views/includes/layer_types/openlayers_views_vector.inc).

Is it just a matter of seeing if args isset first and giving it an empty array otherwise? If so I'll work up a patch.

CommentFileSizeAuthor
#2 openlayers-notice-959128-2.patch571 bytesfebbraro
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

febbraro’s picture

Title: Notice in openlayers_views/includes/layer_types/openlayers_views_vector.inc » Notices in openlayers_views

Also get this Notice too.

Notice: Undefined index: jobs_created in openlayers_views_style_data->map_features() (line 393 of /Users/frank/web/drupal6/sites/all/modules/openlayers/modules/openlayers_views/views/openlayers_views_style_data.inc).

jobs_created is a view field and also specified as the description in the OpenLayers Data settings in a specific display as well as the default display.

febbraro’s picture

Here is a patch for the 1st Notice.

tmcw’s picture

tmcw’s picture

Status: Active » Fixed

(and marking as fixed)

Status: Fixed » Closed (fixed)

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