Skip to content

Commit

Permalink
subject name as accountholder name for unblinded persons only
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Apr 11, 2024
1 parent 09d7d20 commit 5721d8d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ public static void initBankAccountDefaultValues(BankAccountInVO in, Long proband

private static String loadAccountHolderName(Long probandId) {
ProbandOutVO probandVO = WebUtil.getProband(probandId, null, null, null);
return (probandVO == null ? Messages.getString(MessageCodes.ACCOUNT_HOLDER_NAME_PRESET) : probandVO.getName());
if (probandVO != null && probandVO.isPerson() && !probandVO.isBlinded() && probandVO.isDecrypted()) {
return probandVO.getName();
}
return Messages.getString(MessageCodes.ACCOUNT_HOLDER_NAME_PRESET);
}

private BankAccountInVO in;
Expand Down

0 comments on commit 5721d8d

Please sign in to comment.