From 25b53ba01b8270072fc7cfaeb9d7879e5bf68932 Mon Sep 17 00:00:00 2001 From: willtp87 Date: Mon, 25 Aug 2014 10:13:24 -0300 Subject: [PATCH] copypasta omm nom --- includes/regenerate_derivatives.form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/regenerate_derivatives.form.inc b/includes/regenerate_derivatives.form.inc index 437288c9..1312bec3 100644 --- a/includes/regenerate_derivatives.form.inc +++ b/includes/regenerate_derivatives.form.inc @@ -118,7 +118,7 @@ function islandora_regenerate_object_derivatives_batch(AbstractObject $object) { */ function islandora_regenerate_datastream_derivative_batch(AbstractDatastream $datastream) { module_load_include('inc', 'islandora', 'includes/derivatives'); - islandora_remove_defer_derivatives_flag($object); + islandora_remove_defer_derivatives_flag($datastream->parent); return array( 'title' => t('Regenerating derivatives for the @dsid datastream', array('@dsid' => $datastream->id)), 'operations' => islandora_do_batch_derivatives($datastream->parent, array(