Skip to content

Commit

Permalink
resolving item 4 of issue #202
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiku committed Apr 29, 2020
1 parent 646568c commit 7aa4a22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Cspot/PlanController.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ public function store(StorePlanRequest $request)

// insert default service TIMES if requested
$type = Type::find($plan->type_id);
if ( count($type) && ! isset($request->start) ) {
// (updated 29-04-2020 MKS as count($type) failed to work in PHP>7.4 + Laravel>6.x)
if ( $type && $type->id && ! isset($request->start) ) {
// default end time is only the time of day. We need to combine this with the plan date
$startTme = Carbon::parse( $type->start);
$endTime = Carbon::parse( $type->end );
Expand Down
2 changes: 1 addition & 1 deletion public/lastCommit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21 Apr 2020 01:04:19
29 Apr 2020 11:09:43
2 changes: 1 addition & 1 deletion resources/views/admin/files.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class="link fileshow-category-{{ $file->id }} hidden-xs-down">
{{-- linked song id
--}}
<td class="limit-td-width">
@if (Auth::user()->isEditor())
@if ($file->song_id && Auth::user()->isEditor())
<a title="Song Details" href="{{ route('songs.edit', $file->song_id) }}">{{ $file->song_id }}</a>
@else
{{ $file->song_id }}
Expand Down

0 comments on commit 7aa4a22

Please sign in to comment.