Skip to content

OBPIH-6345 Show translated names on PO edit page and modal (fixes after QA)#4621

Merged
awalkowiak merged 2 commits intofeature/upgrade-to-grails-3.3.10from
OBPIH-6345-2
May 15, 2024
Merged

OBPIH-6345 Show translated names on PO edit page and modal (fixes after QA)#4621
awalkowiak merged 2 commits intofeature/upgrade-to-grails-3.3.10from
OBPIH-6345-2

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

attrs.from = order.listOrderItems()
attrs.optionKey = 'id'
attrs.optionValue = { it.toString() }
attrs.optionValue = { it.productDisplayName }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you just do it.product?.displayNameOrDefaultName?

String getProductDisplayName() {
return product?.displayName ?: product?.name
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even if this method turns out to be necessary, which I doubt, this could still be shortened to:

String getProductDisplayName() {
        return product?.displayNameOrDefaultName
}

@alannadolny alannadolny requested a review from kchelstowski May 15, 2024 13:27
@awalkowiak awalkowiak merged commit 3899ffd into feature/upgrade-to-grails-3.3.10 May 15, 2024
@awalkowiak awalkowiak deleted the OBPIH-6345-2 branch May 15, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants