Browse Source

Fix bug where source_dsid of NULL wouldn't trigger all derivs.

pull/559/head
Jordan Dukart 10 years ago
parent
commit
ef13383c28
  1. 2
      includes/derivatives.inc

2
includes/derivatives.inc

@ -213,7 +213,7 @@ function islandora_do_batch_derivatives(AbstractObject $object, array $options)
* Returns the filtered array of hooks to be ran.
*/
function islandora_filter_derivatives($hooks, $options, AbstractObject $object) {
if (array_key_exists('source_dsid', $options)) {
if (array_key_exists('source_dsid', $options) && $options['source_dsid'] !== NULL) {
$hooks = array_filter($hooks, function ($filter_hook) use ($options) {
return array_key_exists('source_dsid', $filter_hook) &&
$filter_hook['source_dsid'] == $options['source_dsid'];

Loading…
Cancel
Save