Commit 422f5e7d by Vladislav

#19466 Остановка РК

1 parent 7fda6448
Showing with 3 additions and 5 deletions
......@@ -122,11 +122,9 @@ class TokensController extends Controller
'enabled' => $enabled,
]);
if (!$enabled) {
$campaign->dictionaryCampaigns()->update([
'enabled' => $enabled,
]);
}
$campaign->dictionaryCampaigns()->update([
'enabled' => $enabled,
]);
return Redirect::back()->with('success', 'Campaign ' . ($campaign->enabled ? 'enabled' : 'disabled') . '.');
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!