From a435cc2d2c8a9eea39da7f5946912f589ba64500 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 27 Feb 2014 10:32:09 +0000 Subject: [PATCH 1/2] Merge for release --- application/controllers/PiecesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/PiecesController.php b/application/controllers/PiecesController.php index 9cab57e6a..86e38188a 100644 --- a/application/controllers/PiecesController.php +++ b/application/controllers/PiecesController.php @@ -133,7 +133,8 @@ class PiecesController extends Zend_Controller_Action foreach($items as $item) { if ($item->ActeDate == '0000-00-00') { - $infosActe['date'] = '-'; + $date = new Zend_Date($item->DepotDate, 'yyyy-MM-dd'); + $infosActe['date'] = $date->toString('dd/MM/yyyy'); } else { $date = new Zend_Date($item->ActeDate, 'yyyy-MM-dd'); $infosActe['date'] = $date->toString('dd/MM/yyyy'); From 42815cbbcd65f2a239a28ccc4c00190b7e7a5c8b Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 27 Feb 2014 15:09:27 +0000 Subject: [PATCH 2/2] ....c...