Skip to content

Commit

Permalink
Set user when creating packet
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Jul 18, 2021
1 parent cce2504 commit 577d37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/Packet/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function &run(Router &$router, View &$view, array &$args)
$model->active_user->getId(),
getenv('REMOTE_ADDR'),
json_encode([
'active_user' => $model->active_user,
'new_packet' => $model->packet,
'products' => $model->products,
])
Expand Down Expand Up @@ -148,6 +147,7 @@ protected function handlePost(FormModel &$model)
$model->packet->setOption(Packet::OPTION_MARKDOWN, $markdown ? true : false);
$model->packet->setOption(Packet::OPTION_PUBLISHED, $published ? true : false);
$model->packet->setOption(Packet::OPTION_RESEARCH, $research ? true : false);
$model->packet->setUser($model->active_user);

try
{
Expand Down

0 comments on commit 577d37f

Please sign in to comment.