Skip to content

Commit d3235d5

Browse files
authored
Fixed value showed always was 1 when editing
1 parent 19092b3 commit d3235d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/views/edit/string.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
<label for="inputKey" class="col-sm-2 control-label">Key</label>
1414

1515
<div class="col-sm-10">
16-
<input type="text" class="form-control key" name="key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] or '' }}">
16+
<input type="text" class="form-control key" name="key" id="inputKey" placeholder="key" readonly value="{{ $data['key'] ?? '' }}">
1717
</div>
1818
</div>
1919
<div class="form-group">
2020
<label for="inputValue" class="col-sm-2 control-label">Value</label>
2121

2222
<div class="col-sm-10">
23-
<textarea class="form-control value" id="inputValue" rows="6" name="value">{{ $data['value'] or '' }}</textarea>
23+
<textarea class="form-control value" id="inputValue" rows="6" name="value">{{ $data['value'] ?? '' }}</textarea>
2424
</div>
2525
</div>
2626
<div class="form-group">
2727
<label for="inputExpire" class="col-sm-2 control-label">Expire</label>
2828

2929
<div class="col-sm-10">
30-
<input type="number" class="form-control expire" id="inputExpire" name="ttl" value="{{ $data['ttl'] or -1 }}">
30+
<input type="number" class="form-control expire" id="inputExpire" name="ttl" value="{{ $data['ttl'] ?? -1 }}">
3131
</div>
3232
</div>
3333

@@ -51,4 +51,4 @@
5151
</div>
5252
<!-- /.box-body -->
5353

54-
@endsection
54+
@endsection

0 commit comments

Comments
 (0)