Skip to content

Commit

Permalink
Change validation message target to specific field instead of form (#314
Browse files Browse the repository at this point in the history
)

This will:
- title
  • Loading branch information
jskowronski39 authored Jan 8, 2024
2 parents fd26cdd + 3700e35 commit 17f976f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Form/Dlc/Dto/DlcFormDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
use Symfony\Component\Validator\Constraints as Assert;

#[SteamStoreArma3DlcUrl(errorPath: 'url')]
#[UniqueSteamStoreDlc]
#[UniqueDirectoryDlc]
#[UniqueSteamStoreDlc(errorPath: 'url')]
#[UniqueDirectoryDlc(errorPath: 'directory')]
class DlcFormDto extends AbstractFormDto
{
protected ?UuidInterface $id = null;
Expand Down
4 changes: 2 additions & 2 deletions src/Form/Mod/Dto/ModFormDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
use Ramsey\Uuid\UuidInterface;
use Symfony\Component\Validator\Constraints as Assert;

#[UniqueSteamWorkshopMod(groups: [ModSourceEnum::STEAM_WORKSHOP->value])]
#[UniqueSteamWorkshopMod(groups: [ModSourceEnum::STEAM_WORKSHOP->value], errorPath: 'url')]
#[SteamWorkshopArma3ModUrl(groups: [ModSourceEnum::STEAM_WORKSHOP->value], errorPath: 'url', nameErrorPath: 'name')]
#[UniqueDirectoryMod(groups: [ModSourceEnum::DIRECTORY->value])]
#[UniqueDirectoryMod(groups: [ModSourceEnum::DIRECTORY->value], errorPath: 'directory')]
class ModFormDto extends AbstractFormDto
{
protected ?UuidInterface $id = null;
Expand Down

0 comments on commit 17f976f

Please sign in to comment.