Commit 368cd380a5fa53f7601cad62c4286ccec37318f3

Authored by Etienne Pallier
1 parent c305c3b5
Exists in master and in 1 other branch dev

bugfix assert materiels/view (v3.7.9.90)

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/Template/Materiels/view.ctp
@@ -612,7 +612,7 @@ $displayElement(__('Statut'), h($entity->status)); @@ -612,7 +612,7 @@ $displayElement(__('Statut'), h($entity->status));
612 $displayElement(__('Date de création'), h($entity->created)); 612 $displayElement(__('Date de création'), h($entity->created));
613 if ($entity->status == 'VALIDATED') { 613 if ($entity->status == 'VALIDATED') {
614 //debug("coucou"); 614 //debug("coucou");
615 - /* 615 + /** TODO
616 assert($entity->has('date_validated')); 616 assert($entity->has('date_validated'));
617 assert($entity->date_validated != null); 617 assert($entity->date_validated != null);
618 */ 618 */
@@ -627,8 +627,10 @@ $displayElement(__("Date de validation"), h($entity->date_validated)); @@ -627,8 +627,10 @@ $displayElement(__("Date de validation"), h($entity->date_validated));
627 $displayElement(__("Date d'archivage"), h($entity->date_archived)); 627 $displayElement(__("Date d'archivage"), h($entity->date_archived));
628 if ($entity->status == 'ARCHIVED') { 628 if ($entity->status == 'ARCHIVED') {
629 //$entity->date_archived=5; 629 //$entity->date_archived=5;
  630 + /** TODO
630 assert($entity->has('date_archived')); 631 assert($entity->has('date_archived'));
631 assert($entity->date_archived != null); 632 assert($entity->date_archived != null);
  633 + */
632 } 634 }
633 635
634 $displayElement(__('Prix (HT)'), h($entity->prix_ht) . ' €'); 636 $displayElement(__('Prix (HT)'), h($entity->prix_ht) . ' €');