protected function setRework(&$quickReceive) { // update Article->rework $articleID = Session::get('articleID'); $article = $this->articleRepository->find($articleID); if (isset($article->rework) and strlen($article->rework) > 2) { $quickReceive->Rework = $article->rework; } else { // our list box returns '0','none','low','medium' or 'high' $input_rework = Input::get('Rework'); if (ctype_lower($input_rework[0])) { $rework = Lang::get('lists.article.rework.' . Input::get('Rework')); Log::debug("articleID: {$articleID}, update Rework: {$rework}"); $this->articleRepository->update($articleID, ['rework' => $rework]); $quickReceive->Rework = $rework; $podID = Session::get('podID'); // record a text line $textLine = ['POD' => $podID, 'Article' => $articleID, 'User_Name' => Auth::user()->name, 'Sender_Name' => Config::get('constants.application.name'), 'Text' => Lang::get('internal.articleFlow.selectRework', ['Article' => $articleID, 'Rework' => $rework])]; $this->userConversationRepository->create($textLine); } } }