Skip to content

Fix the inventory close reason expression#8463

Open
erenkarakal wants to merge 1 commit intodev/patchfrom
patch/fix-inventory-close-reason
Open

Fix the inventory close reason expression#8463
erenkarakal wants to merge 1 commit intodev/patchfrom
patch/fix-inventory-close-reason

Conversation

@erenkarakal
Copy link
Member

Problem

inventory close reason always returns none because it's not initialized correctly

Solution

Fix the code to call EventValueExpression's init

Testing Completed

Manual testing

Supporting Information

Removed the classExists check since the class exists on 1.21.0 and above


Completes: #8462
Related: none
AI assistance: none

@erenkarakal erenkarakal requested a review from a team as a code owner February 26, 2026 07:49
@erenkarakal erenkarakal requested review from Absolutionism and Pesekjak and removed request for a team February 26, 2026 07:49
@erenkarakal erenkarakal linked an issue Feb 26, 2026 that may be closed by this pull request
1 task
@Override
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
public boolean init(Expression<?>[] expressions, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
if (!getParser().isCurrentEvent(InventoryCloseEvent.class)) {
Copy link
Member

Choose a reason for hiding this comment

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

ERS 👼

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.

"inventory close reason" Expression return nothing

2 participants