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

Fixed 'Node -> Settings' Location Dropdown selecting first location after save #5163

Open
wants to merge 1 commit into
base: 1.0-develop
Choose a base branch
from

Conversation

MackenzieMolloy
Copy link

Currently, when you click the save button with the Node Settings page open, the location drop-down displays (select) the first location (one with the lowest id) even if the node location property wasn't edited and had a different location set.

For example, if location with id 2 was set and you clicked save then the dropdown displays the location with id 1.

This bug was caused by the Laravel Old() method always returning a String whereas the location id property is always an Integer, so old and current property comparison would always return false when saving.

@danny6167 danny6167 assigned danny6167 and unassigned danny6167 Jul 25, 2024
@danny6167
Copy link
Member

Tested, working, and ready to merge.
Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Awaiting merge
Development

Successfully merging this pull request may close these issues.

2 participants