Skip to content

Custom Reports: Fix action logs sub query select to item_id.#19196

Merged
snipe merged 1 commit into
grokability:developfrom
Godmartinz:rb-21679
Jun 16, 2026
Merged

Custom Reports: Fix action logs sub query select to item_id.#19196
snipe merged 1 commit into
grokability:developfrom
Godmartinz:rb-21679

Conversation

@Godmartinz

@Godmartinz Godmartinz commented Jun 16, 2026

Copy link
Copy Markdown
Member

Looks like the action log query was selecting the row id instead of the item id. This fixes that.
[RB-21679]

@Godmartinz Godmartinz requested a review from snipe as a code owner June 16, 2026 21:35
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

$checkout_end = Carbon::parse($request->input('checkout_date_end', now()))->endOfDay();

$actionlogassets = Actionlog::select('id')->where('action_type', '=', 'checkout')
$actionlogassets = Actionlog::select('item_id')->where('action_type', '=', 'checkout')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good catch. I scanned the PR that added this and didn't clock id vs item_id.

@snipe snipe merged commit 2cb184b into grokability:develop Jun 16, 2026
9 checks passed
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