dkan icon indicating copy to clipboard operation
dkan copied to clipboard

Fix `NULL` being used by default instead of "none" option in `triggering_properties`

Open clayliddell opened this issue 3 years ago • 0 comments

Describe the bug

Encountered this error when creating a dataset without "Dataset properties" set under DKAN > Metastore referencer:

Warning: array_filter() expects parameter 1 to be array, null given in Drupal\datastore\EventSubscriber\DatastoreSubscriber->onPreReference() (line 179 of modules/contrib/dkan/modules/datastore/src/EventSubscriber/DatastoreSubscriber.php). 

Steps To Reproduce

Create a dataset without "Dataset properties" set under DKAN > Metastore referencer.

Expected behavior

This warning should not occur.

clayliddell avatar Aug 17 '21 15:08 clayliddell