Skip to content

Commit 577d37f

Browse files
committed
Set user when creating packet
1 parent cce2504 commit 577d37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/Packet/Create.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function &run(Router &$router, View &$view, array &$args)
5454
$model->active_user->getId(),
5555
getenv('REMOTE_ADDR'),
5656
json_encode([
57-
'active_user' => $model->active_user,
5857
'new_packet' => $model->packet,
5958
'products' => $model->products,
6059
])
@@ -148,6 +147,7 @@ protected function handlePost(FormModel &$model)
148147
$model->packet->setOption(Packet::OPTION_MARKDOWN, $markdown ? true : false);
149148
$model->packet->setOption(Packet::OPTION_PUBLISHED, $published ? true : false);
150149
$model->packet->setOption(Packet::OPTION_RESEARCH, $research ? true : false);
150+
$model->packet->setUser($model->active_user);
151151

152152
try
153153
{

0 commit comments

Comments
 (0)