Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix duplicated modules on settings page #1786

Merged
merged 2 commits into from
Sep 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply fixes from StyleCI
  • Loading branch information
djaiss authored and StyleCIBot committed Sep 6, 2018
commit 36bf2db77d3a5b742ef33841669973416238b813
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php

use App\Models\Account\Account;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
Expand All @@ -25,7 +22,7 @@ public function up()
$uniqueModules = collect([]);
foreach ($modules as $module) {
$deleted = false;
foreach($uniqueModules as $uniqueModule) {
foreach ($uniqueModules as $uniqueModule) {
if ($uniqueModule['translation_key'] == $module->translation_key) {
$module->delete();
$deleted = true;
Expand Down