Merge remote-tracking branch 'refs/remotes/origin/develop' into develop

This commit is contained in:
Ahmed Bouhuolia
2026-03-01 23:56:35 +02:00
3 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ export class UnlinkAttachment {
validateLinkModelExists(attachableModel);
const LinkModel = this.moduleRef.get(modelRef, { strict: false });
const foundLinkModel = await LinkModel.query(trx).findById(modelId);
const foundLinkModel = await LinkModel().query(trx).findById(modelId);
validateLinkModelEntryExists(foundLinkModel);
const document = await this.documentModel().query(trx).findOne('key', filekey);

View File

@@ -19,7 +19,7 @@ import { useMoneyInDailogContext } from './MoneyInDialogProvider';
*/
export default function TransactionTypeFields() {
// Money in dialog context.
const { cashflowAccounts, setAccountId } = useMoneyInDailogContext();
const { cashflowAccounts, setAccountId, accountId } = useMoneyInDailogContext();
// Retrieves the add money in button options.
const addMoneyInOptions = useMemo(() => getAddMoneyInOptions(), []);
@@ -55,8 +55,8 @@ export default function TransactionTypeFields() {
<FAccountsSuggestField
name={'cashflow_account_id'}
items={cashflowAccounts}
onItemSelect={({ id }) => {
setAccountId(id);
onItemChange={(value) => {
setAccountId(value);
}}
/>
</FFormGroup>

View File

@@ -60,8 +60,8 @@ function TransactionTypeFields() {
<FAccountsSuggestField
name={'cashflow_account_id'}
items={cashflowAccounts}
onItemSelect={({ id }) => {
setAccountId(id);
onItemChange={(value) => {
setAccountId(value);
}}
/>
</FFormGroup>