Skip to content

Commit 89e253e

Browse files
committed
Add missing 'direction' prefill
1 parent 7854cb3 commit 89e253e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/controllers/Packet/Create.php

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function &run(Router &$router, View &$view, array &$args)
4444

4545
self::assignDefault($model->form_fields, 'application_layer', $model->packet->getApplicationLayerId());
4646
self::assignDefault($model->form_fields, 'deprecated', $model->packet->isDeprecated());
47+
self::assignDefault($model->form_fields, 'direction', $model->packet->getDirection());
4748
self::assignDefault($model->form_fields, 'format', $model->packet->getFormat());
4849
self::assignDefault($model->form_fields, 'markdown', $model->packet->isMarkdown());
4950
self::assignDefault($model->form_fields, 'name', $model->packet->getName());

src/controllers/Packet/Edit.php

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function &run(Router &$router, View &$view, array &$args)
5858

5959
self::assignDefault($model->form_fields, 'application_layer', $model->packet->getApplicationLayerId());
6060
self::assignDefault($model->form_fields, 'deprecated', $model->packet->isDeprecated());
61+
self::assignDefault($model->form_fields, 'direction', $model->packet->getDirection());
6162
self::assignDefault($model->form_fields, 'format', $model->packet->getFormat());
6263
self::assignDefault($model->form_fields, 'markdown', $model->packet->isMarkdown());
6364
self::assignDefault($model->form_fields, 'name', $model->packet->getName());

0 commit comments

Comments
 (0)