Skip to content

Commit

Permalink
fix: Release date reset bug fix and autocomplete input field issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Jan 2, 2024
1 parent b201909 commit 935fab8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function publish(Request $request, Project $project)
$validation->process();
$validation = $validation->fresh();
if ($validation['report']['project']['status']) {
$project->release_date = $request->get('releaseDate');
$project->release_date = $request->get('release_date');
$project->status = 'queued';
$project->save();

Expand All @@ -307,7 +307,7 @@ public function publish(Request $request, Project $project)
$draft->project_enabled = false;
$draft->save();

$project->release_date = $request->get('releaseDate');
$project->release_date = $request->get('release_date');
$project->status = 'queued';
$project->save();

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Shared/ProjectSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="relative w-full border-0 px-6 py-3 rounded-full focus:shadow-outline"
autocomplete="off"
type="text"
name="search"
name="project-search"
placeholder="Search"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Shared/StudySearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="relative w-full border-0 px-6 py-3 rounded-full focus:shadow-outline"
autocomplete="off"
type="text"
name="search"
name="sample-search"
placeholder="Search"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
Expand Down

0 comments on commit 935fab8

Please sign in to comment.