mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 04:13:46 +02:00
Fix typo in migration script that deleted regex from non-required vars
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user