]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавил проверку на то, что параметр задан
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 2 Jul 2024 15:06:54 +0000 (18:06 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 2 Jul 2024 15:06:54 +0000 (18:06 +0300)
erp24/views/timetable/tabel_edit.php

index 8544495730fabd2915b5c3bb423e1fc8f31c8235..a4f49affe0f449400f75e3eaf2a04b1be651c558 100755 (executable)
@@ -102,6 +102,8 @@ if (Timetable::getAllowEditShift($slot->date, $numDay)) {
 } ?>
 <?php $form::end() ?>
 
+<?php if (isset($dataProvider)): ?>
+
 <h3 class="m-2">Факты смены:</h3>
 
 <div class="table-responsive">
@@ -184,4 +186,6 @@ if (Timetable::getAllowEditShift($slot->date, $numDay)) {
         ],
     ],
 ]); ?>
-</div>
\ No newline at end of file
+</div>
+
+<?php endif; ?>
\ No newline at end of file