Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit bf47280

Browse files
author
Julien Jomier
committed
BUG: Bitstream should have dates
1 parent 939daba commit bf47280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

application/models/pdo/ItemRevisionModel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ function addBitstream($itemRevisionDao,$bitstreamDao)
5858
$bitstreamDao->setItemrevisionId($itemRevisionDao->getItemrevisionId());
5959

6060
// Save the bistream
61+
$bitstreamDao->setDate(date('c'));
6162
$BitstreamModel->save($bitstreamDao);
6263

6364
$item=$itemRevisionDao->getItem($bitstreamDao);
6465
$item->setSizebytes($this->getSize($itemRevisionDao));
6566
$item->setDate(date('c'));
67+
6668
/** thumbnail*/
6769
$procces=Zend_Registry::get('configGlobal')->processing;
6870
if($procces=='cron')

0 commit comments

Comments
 (0)