From 368cd380a5fa53f7601cad62c4286ccec37318f3 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Fri, 31 Jul 2020 16:24:55 +0200 Subject: [PATCH] bugfix assert materiels/view (v3.7.9.90) --- src/Template/Materiels/view.ctp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Template/Materiels/view.ctp b/src/Template/Materiels/view.ctp index 468d3ad..b6a1567 100755 --- a/src/Template/Materiels/view.ctp +++ b/src/Template/Materiels/view.ctp @@ -612,7 +612,7 @@ $displayElement(__('Statut'), h($entity->status)); $displayElement(__('Date de création'), h($entity->created)); if ($entity->status == 'VALIDATED') { //debug("coucou"); - /* + /** TODO assert($entity->has('date_validated')); assert($entity->date_validated != null); */ @@ -627,8 +627,10 @@ $displayElement(__("Date de validation"), h($entity->date_validated)); $displayElement(__("Date d'archivage"), h($entity->date_archived)); if ($entity->status == 'ARCHIVED') { //$entity->date_archived=5; + /** TODO assert($entity->has('date_archived')); assert($entity->date_archived != null); + */ } $displayElement(__('Prix (HT)'), h($entity->prix_ht) . ' €'); -- libgit2 0.21.2