Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBPIH-5329 Improve deleting location with assigned zone #3795

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

awalkowiak
Copy link
Collaborator

No description provided.

@@ -144,8 +144,7 @@ class LocationDataService {
}
def locationType = null
if (params.locationType) {
// Find by name with like, but value more the exact match
locationType = LocationType.findByNameOrNameIlike(params.locationType, params.locationType + "%")
locationType = LocationType.findByIdOrName(params.locationType, params.locationType)
Copy link
Collaborator

Choose a reason for hiding this comment

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

if we want to search by name also, don't we want to keep "%"? I see it being removed and can't guess the reason?

Copy link
Collaborator

Choose a reason for hiding this comment

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

nvm, it became findByIdOrName and was NameIlike

@awalkowiak awalkowiak merged commit b6413d2 into release/0.8.21 Jan 24, 2023
@awalkowiak awalkowiak deleted the OBPIH-5329 branch January 24, 2023 19:35
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.

None yet

2 participants