Fix creating piggies

This commit is contained in:
James Cole
2024-12-07 08:05:29 +01:00
parent ea4be9dd0c
commit 1220564f30
6 changed files with 79 additions and 32 deletions

View File

@@ -157,7 +157,6 @@ class AccountForm
{
$types = [AccountTypeEnum::ASSET->value, AccountTypeEnum::DEFAULT->value, AccountTypeEnum::MORTGAGE->value, AccountTypeEnum::DEBT->value,AccountTypeEnum::LOAN->value];
$grouped = $this->getAccountsGrouped($types);
return $this->multiSelect($name, $grouped, $value, $options);
}

View File

@@ -63,6 +63,7 @@ trait FormSupport
$options = $this->expandOptionArray($name, $label, $options);
$classes = $this->getHolderClasses($name);
$selected = $this->fillFieldValue($name, $selected);
unset($options['autocomplete'], $options['placeholder']);
try {