Skip to content

Commit

Permalink
Add missing 'direction' prefill
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Jul 21, 2021
1 parent 7854cb3 commit 89e253e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/Packet/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function &run(Router &$router, View &$view, array &$args)

self::assignDefault($model->form_fields, 'application_layer', $model->packet->getApplicationLayerId());
self::assignDefault($model->form_fields, 'deprecated', $model->packet->isDeprecated());
self::assignDefault($model->form_fields, 'direction', $model->packet->getDirection());
self::assignDefault($model->form_fields, 'format', $model->packet->getFormat());
self::assignDefault($model->form_fields, 'markdown', $model->packet->isMarkdown());
self::assignDefault($model->form_fields, 'name', $model->packet->getName());
Expand Down
1 change: 1 addition & 0 deletions src/controllers/Packet/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function &run(Router &$router, View &$view, array &$args)

self::assignDefault($model->form_fields, 'application_layer', $model->packet->getApplicationLayerId());
self::assignDefault($model->form_fields, 'deprecated', $model->packet->isDeprecated());
self::assignDefault($model->form_fields, 'direction', $model->packet->getDirection());
self::assignDefault($model->form_fields, 'format', $model->packet->getFormat());
self::assignDefault($model->form_fields, 'markdown', $model->packet->isMarkdown());
self::assignDefault($model->form_fields, 'name', $model->packet->getName());
Expand Down

0 comments on commit 89e253e

Please sign in to comment.