Skip to content

Commit

Permalink
Fixed value showed always was 1 when editing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZealousLyon authored Apr 2, 2019
1 parent 6a23606 commit 48453fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/edit/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<label for="inputKey" class="col-sm-2 control-label">Key</label>

<div class="col-sm-10">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
<input type="text" class="form-control key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
</div>
</div>

<div class="form-group">
<label for="inputExpire" class="col-sm-2 control-label">Expires</label>

<div class="col-sm-10">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] or -1 }}">
<input type="number" class="form-control ttl" id="inputExpire" value="{{ $data['ttl'] ?? -1 }}">
</div>
</div>

Expand Down Expand Up @@ -197,4 +197,4 @@
</script>

@endsection
@endsection

0 comments on commit 48453fd

Please sign in to comment.