Skip to content

Fix: avoid SLA report crash, exclude trash from percentages - #418

Merged
Rom1-B merged 1 commit into
11.0/bugfixesfrom
issue_409
Dec 4, 2026
Merged

Rom1-B merged 1 commit into
11.0/bugfixesfrom
issue_409

Conversation

@Rom1-B

@Rom1-B Rom1-B commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

RuntimeException: Empty IN are not allowed

Screenshots (if appropriate):

@Rom1-B
Rom1-B merged commit 051445f into 11.0/bugfixes Dec 4, 2026
7 checks passed
@Rom1-B
Rom1-B deleted the issue_409 branch December 4, 2026 06:36
@glpi-project

glpi-project Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Backport-action backported this pull request in workflow run 47282651975.

Target Status
main ⚠️ Drafted with conflicts #420

Rom1-B added a commit that referenced this pull request Dec 4, 2026
## Checklist before requesting a review

*Please delete options that are not relevant.*

- [x] I have performed a self-review of my code.
- [ ] I have added tests (when available) that prove my fix is effective
or that my feature works.
- [x] I have updated the CHANGELOG with a short functional description
of the fix or new feature.
- [ ] This change requires a documentation update.

## Description

- It fixes #409
- On GLPI 12, the inventory reports showing percentages (by
manufacturer, type, status, printers by status) ended on the error page
because the total subquery lost its prepared statement values.
- The subquery values are now passed along with the percentage
expression.
- The remaining errors of #409 (union queries for computers by age and
by OS, empty IN on the SLA report) are fixed by the forward-ports of
#411 and #418.

```
Number of placeholders (6) in SQL statement does not match number of values (3).
```

## Screenshots (if appropriate):
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.

GLPI 12: 11 reports fail with "Ocorreu um erro inesperado" (subquery params lost in QueryExpression, QueryUnion passed to request(), empty IN)

2 participants