Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | openlayers-notice-959128-2.patch | 571 bytes | febbraro |
Comments
Comment #1
febbraro CreditAttribution: febbraro commentedAlso 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.
Comment #2
febbraro CreditAttribution: febbraro commentedHere is a patch for the 1st Notice.
Comment #3
tmcw CreditAttribution: tmcw commentedGreat, committed: http://drupal.org/cvs?commit=446750
Comment #4
tmcw CreditAttribution: tmcw commented(and marking as fixed)