Skip to content

Fixed #18475 - reference the correct model when checking in an asset via import#18476

Merged
snipe merged 1 commit intogrokability:developfrom
marcusmoore:fixes/18475-action-log-checkin-during-import
Jan 23, 2026
Merged

Fixed #18475 - reference the correct model when checking in an asset via import#18476
snipe merged 1 commit intogrokability:developfrom
marcusmoore:fixes/18475-action-log-checkin-during-import

Conversation

@marcusmoore
Copy link
Copy Markdown
Collaborator

As noted in #18475, when updating an asset that is checked out to a location via the importer and part of the update is re-assigning the asset to a different location then the action log would record the "check in" as coming from a User with the same id as the original location.

This is because we were always referencing a user by calling User::find($asset->assigned_to). This has been changed so that we pass the model that is currently assigned to the CheckoutableCheckedIn event.


Fixes #18475

@marcusmoore marcusmoore requested a review from snipe as a code owner January 22, 2026 22:40
@snipe snipe merged commit eee8262 into grokability:develop Jan 23, 2026
8 checks passed
@marcusmoore marcusmoore deleted the fixes/18475-action-log-checkin-during-import branch January 26, 2026 18: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.

[Bug]: For an item checked out to a location, checking it out to a new location via CSV upload checks it in instead from a user with the same ID

2 participants