panel icon indicating copy to clipboard operation
panel copied to clipboard

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

Open MackenzieMolloy opened this issue 1 year ago • 1 comments

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.

MackenzieMolloy avatar Jul 18 '24 20:07 MackenzieMolloy

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

danny6167 avatar Jul 25 '24 06:07 danny6167