Skip to content

Commit

Permalink
#10726 fix allowedLocales in section repository
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Jan 9, 2025
1 parent 7b40613 commit bb06717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/section/Repository.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @file classes/section/Repository.php
*
Expand Down Expand Up @@ -88,7 +89,7 @@ public function getSchemaMap(): maps\Schema
public function validate(?Section $object, array $props, Context $context): array
{
$errors = [];
$allowedLocales = $context->getSupportedSubmissionLocales();
$allowedLocales = $context->getSupportedFormLocales();
$primaryLocale = $context->getPrimaryLocale();

$validator = ValidatorFactory::make(
Expand Down

0 comments on commit bb06717

Please sign in to comment.