Skip to content

Commit 0d18d15

Browse files
committed
Fix compatibility with multilang sites
Signed-off-by: Tobias Wolf <[email protected]>
1 parent efc70cc commit 0d18d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/orderPageAbstract.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function errors(): array
2222

2323
$fields = array_change_key_case($this->blueprint()->fields());
2424
// add model to each field
25+
$this->kirby()->setCurrentLanguage($this->kirby()->defaultLanguage()->code());
2526
$fields = array_map(function ($field) {
2627
$field['model'] = $this;
2728
return $field;

0 commit comments

Comments
 (0)