From cfd1590353dba593b640feff735186e091b7e04d Mon Sep 17 00:00:00 2001 From: Hamatoma Date: Sat, 6 Apr 2024 08:30:21 +0200 Subject: [PATCH] V 0.1.2 Korrekturen Verb - Korrektur Edieren Verb: Anzeige von "Verwendung" - Korrektur Edieren Verb: Behandlung "transitiv" --- CHANGELOG.md | 6 ++++++ app/Http/Controllers/VerbController.php | 4 ++++ composer.lock | 22 +++++++++++----------- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b47c180..7ebd78a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# V 0.1.2 Korrekturen Verb + +# Changed +- Korrektur Edieren Verb: Anzeige von "Verwendung" +- Korrektur Edieren Verb: Behandlung "transitiv" + # V 0.1.1 Verb improvements # Added diff --git a/app/Http/Controllers/VerbController.php b/app/Http/Controllers/VerbController.php index 98b6b74..17539e8 100644 --- a/app/Http/Controllers/VerbController.php +++ b/app/Http/Controllers/VerbController.php @@ -13,6 +13,7 @@ use App\Helpers\Pagination; use App\Helpers\ViewHelper; use Illuminate\Http\Request; use App\Helpers\ContextLaraKnife; +use Illuminate\Routing\ViewController; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Validator; @@ -66,12 +67,14 @@ class VerbController extends Controller } else { $fields = $request->all(); if (count($fields) === 0) { + ViewHelper::adaptCheckbox($fields, 'transitive'); $word = Word::find($verb->word_id); $phrase = DB::select('select id, phrase from phrases where word_id=? and language_scope=1201', [$word->id])[0]; $fields = [ 'noun' => $word->word, 'word_id' => $verb->word_id, 'phrase_id' => $phrase->id, + 'usage' => $phrase->phrase ]; } $context = new ContextLaraKnife($request, $fields, $verb); @@ -264,6 +267,7 @@ class VerbController extends Controller $rc = null; if ($request->btnSubmit === 'btnStore') { $fields = $request->all(); + ViewHelper::adaptCheckbox($fields, 'transitive'); $validator = Validator::make($fields, $this->rules(false)); if ($validator->fails()) { $errors = $validator->errors(); diff --git a/composer.lock b/composer.lock index 8d2875e..4565f1b 100644 --- a/composer.lock +++ b/composer.lock @@ -2027,16 +2027,16 @@ }, { "name": "nesbot/carbon", - "version": "3.2.3", + "version": "3.2.4", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1" + "reference": "82c28278c1c8f7b82dcdab25692237f052ffc8d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1", - "reference": "4d599a6e2351d6b6bf21737accdfe1a4ce3fdbb1", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/82c28278c1c8f7b82dcdab25692237f052ffc8d8", + "reference": "82c28278c1c8f7b82dcdab25692237f052ffc8d8", "shasum": "" }, "require": { @@ -2129,7 +2129,7 @@ "type": "tidelift" } ], - "time": "2024-03-30T18:22:00+00:00" + "time": "2024-04-05T09:58:10+00:00" }, { "name": "nette/schema", @@ -6860,16 +6860,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.16", + "version": "10.5.17", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd" + "reference": "c1f736a473d21957ead7e94fcc029f571895abf5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd", - "reference": "18f8d4a5f52b61fdd9370aaae3167daa0eeb69cd", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c1f736a473d21957ead7e94fcc029f571895abf5", + "reference": "c1f736a473d21957ead7e94fcc029f571895abf5", "shasum": "" }, "require": { @@ -6941,7 +6941,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.16" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.17" }, "funding": [ { @@ -6957,7 +6957,7 @@ "type": "tidelift" } ], - "time": "2024-03-28T10:08:10+00:00" + "time": "2024-04-05T04:39:01+00:00" }, { "name": "sebastian/cli-parser", -- 2.39.5