From 68d52ea32910bb3d37dc969f72f88c3750f4d8fc Mon Sep 17 00:00:00 2001 From: jonathangreen Date: Wed, 31 Jul 2013 22:04:40 -0300 Subject: [PATCH] Fixed bug with datastream alter. --- includes/tuque_wrapper.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/tuque_wrapper.inc b/includes/tuque_wrapper.inc index baaf10b0..96f9919c 100644 --- a/includes/tuque_wrapper.inc +++ b/includes/tuque_wrapper.inc @@ -207,6 +207,9 @@ class IslandoraFedoraApiM extends FedoraApiM { 'params' => $params, ); islandora_alter_datastream($object, $datastream, $context); + if (isset($params['lastModifiedDate'])) { + $params['lastModifiedDate'] = (string) $object[$dsid]->createdDate; + } try { if ($context['block']) { throw new Exception('Modify Datastream was blocked.');