forked from Alex/Pterodactyl-Panel
Fix typo in migration script that deleted regex from non-required vars
This commit is contained in:
parent
887e48aeb3
commit
a554f242a8
@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||
### Fixed
|
||||
* `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent.
|
||||
* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations.
|
||||
* `[pre.6]` — Fixes typo in migrations that wouldn't save custom regex for non-required variables.
|
||||
|
||||
## v0.6.0-pre.6 (Courageous Carniadactylus)
|
||||
### Fixed
|
||||
|
@ -20,7 +20,7 @@ class ChangeServiceVariablesValidationRules extends Migration
|
||||
|
||||
DB::transaction(function () {
|
||||
foreach (ServiceVariable::all() as $variable) {
|
||||
$variable->rules = ($variable->required) ? 'required|regex:' . $variable->rules : 'regex:' . $variable->regex;
|
||||
$variable->rules = ($variable->required) ? 'required|regex:' . $variable->rules : 'regex:' . $variable->rules;
|
||||
$variable->save();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user