Skip to content

Use current() to access first row.#76

Closed
enboig wants to merge 72 commits intoyllen:masterfrom
enboig:master
Closed

Use current() to access first row.#76
enboig wants to merge 72 commits intoyllen:masterfrom
enboig:master

Conversation

@enboig
Copy link
Copy Markdown

@enboig enboig commented Sep 9, 2024

Updating my glpi modules I found next() is used to access first row in iterators. It has changed in recent GPLI versions:

https://forum.glpi-project.org/viewtopic.php?id=283925

I don't know if it would break installation on older GPLI 10.0.9

enboig and others added 17 commits September 9, 2024 12:58
To access database iterator first result, you should use `current()` and not `next()`.
https://forum.glpi-project.org/viewtopic.php?id=283925
Co-authored-by: stonebuzz <7335054+stonebuzz@users.noreply.github.com>
* Fix file headers

* Update composer files

* Fix ile headers

* Fix file headers

* Update setup.php

Co-authored-by: Stanislas <skita@teclib.com>

---------

Co-authored-by: Stanislas <skita@teclib.com>
* Update setup.php

Co-authored-by: Stanislas <skita@teclib.com>

* Create README.md

* Remove config from readme

* Fix setup.php

* Fix setup.php

---------

Co-authored-by: Stanislas <skita@teclib.com>
RomainLvr and others added 12 commits January 15, 2025 14:35
* Fix itilsolution picture visibility

* Fix Lints
* Fix ticket task picture visibility

* Fix Lints
Replace next() by current() to access first row
Feat(repo): add missing CHANGELOG.md file
* Load logo from Branding when activated

* Remove ReflectionClass method

* Add toggle in config to enable Branding logo use

* In english please

* Update CHANGELOG

* Update CHANGELOG.md

Co-authored-by: Stanislas <skita@teclib.com>

* Drop support of old GLPI version for logo

* Use hook for Branding logo

* Use twig for config

* Fix cs fixer

* Fix headers

* Update inc/simplepdf.class.php

Co-authored-by: Stanislas <skita@teclib.com>

* Update inc/simplepdf.class.php

Co-authored-by: Stanislas <skita@teclib.com>

---------

Co-authored-by: Stanislas <skita@teclib.com>
Rom1-B and others added 29 commits March 21, 2025 13:40
fix(export): resolve blank page issue on PDF export
fix(export): images missing in exported Knowledge Base PDF
* Cast value to float, fixes "must be of type float, string given" when printing pdf with a currency-related value

* Apply suggestions from code review

---------

Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
@enboig enboig closed this by deleting the head repository Sep 17, 2025
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.

9 participants