Skip to content

Commit 07a388c

Browse files
authored
Merge pull request pterodactyl#605 from KasperFranz/bug/newVariablePopulate
using the placeholder value if nothing is specified in rules on a new…
2 parents 07965d0 + 3377898 commit 07a388c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
99
* Support for CS:GO as a default service option selection.
1010
* Support for GMOD as a default service option selection.
1111

12+
### Fixed
13+
* Using default value in rules when creating a new variable if the rules is empty.
14+
1215
## v0.6.4 (Courageous Carniadactylus)
1316
### Fixed
1417
* Fixed the console rendering on page load, I guess people don't like watching it load line-by-line for 10 minutes. Who would have guessed...

resources/themes/pterodactyl/admin/services/options/variables.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
</div>
140140
<div class="form-group">
141141
<label class="form-label">Input Rules</label>
142-
<input type="text" name="rules" class="form-control" placeholder="required|string|max:20" />
142+
<input type="text" name="rules" class="form-control" value="required|string|max:20" placeholder="required|string|max:20" />
143143
<p class="text-muted small">These rules are defined using standard Laravel Framework validation rules.</p>
144144
</div>
145145
</div>

0 commit comments

Comments
 (0)