fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 01:48:22 +00:00
parent 7cfe63e7e6
commit e52ba893e9
2 changed files with 4 additions and 6 deletions

View File

@ -105,9 +105,7 @@ final class ApiController extends Controller
$task->type = TaskType::HIDDEN;
$task->unit ??= $this->app->unitId;
$report = new Report($task);
return $report;
return new Report($task);
}
/**

View File

@ -37,17 +37,17 @@ echo $this->data['nav']->render(); ?>
<div class="portlet-body">
<div class="form-group">
<label for="iBill"><?= $this->getHtml('Bill'); ?></label>
<input type="text" id="iBill" name="bill" form="fTask"<?= !$isNew ? ' disabled' : ''; ?>>
<input type="text" id="iBill" name="bill" form="fTask"<?= $isNew ? '' : ' disabled'; ?>>
</div>
<div class="form-group">
<label for="iItem"><?= $this->getHtml('Item'); ?></label>
<input type="text" id="iItem" name="item" form="fTask"<?= !$isNew ? ' disabled' : ''; ?>>
<input type="text" id="iItem" name="item" form="fTask"<?= $isNew ? '' : ' disabled'; ?>>
</div>
<div class="form-group">
<label for="iLotSN"><?= $this->getHtml('LotSN'); ?></label>
<input type="text" id="iLotSN" name="lot" form="fTask"<?= !$isNew ? ' disabled' : ''; ?>>
<input type="text" id="iLotSN" name="lot" form="fTask"<?= $isNew ? '' : ' disabled'; ?>>
</div>
</div>
</section>