Repository navigation
Conversation
Lainow
requested review from
a team,
Rom1-B,
RomainLvr and
stonebuzz
and removed request for
a team
November 4, 2026 16:48
Rom1-B
reviewed
Nov 5, 2026
Rom1-B
left a comment
Contributor
There was a problem hiding this comment.
Thanks, this looks good in my tests. Since it touches a lot of files, I'd rather wait until the other open PRs are merged, then rebase this one and do the full review.
Rom1-B
marked this pull request as draft
November 5, 2026 08:37
Lainow
marked this pull request as ready for review
November 5, 2026 09:10
Lainow
marked this pull request as draft
November 5, 2026 09:11
Lainow
force-pushed
the
refactor/twig-instead-of-echo
branch
2 times, most recently
from
November 19, 2026 11:20
b78c1b0 to
a881784
Compare
Lainow
marked this pull request as ready for review
November 19, 2026 13:29
Rom1-B
reviewed
Nov 20, 2026
Rom1-B
left a comment
Contributor
There was a problem hiding this comment.
dropdownLinkedTypes(), dropdownFields() and showMandatoryCheckbox() (in inc/injectiontype.class.php) are public and removed here, and showSample() now returns a Response instead of echoing. Do you know of any third-party plugin relying on them? If not, a line in the CHANGELOG would be enough.
Rom1-B
previously approved these changes
Nov 20, 2026
- Mappings and additional information forms share a mapping table component: the field dropdown is refreshed client side (ajax/fieldsChoices.php) instead of reloading the rows through dropdownChooseField.php / dropdownMandatory.php - Show the mapped / link fields counters and the fields used both by a mapping and an additional information - Twig templates for the profile rights, the file preview and the injection log - Model dropdown rendered with Dropdown::showFromArray() - Sample CSV and batch injection return Symfony responses - Only warn about mappings override when the model already has mappings - Remove the CSS and JS of the old wizard, unused
…mapping, label of the info inputs
Lainow
force-pushed
the
refactor/twig-instead-of-echo
branch
from
December 1, 2026 11:00
eae890e to
0d54bf1
Compare
stonebuzz
requested changes
Dec 2, 2026
stonebuzz
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist before requesting a review
Description
The remaining screens built with
echoare now rendered with Twig templates, using the GLPI form components.Mappings and additional information
components/mapping_table.html.twigcomponent.ajax/fieldsChoices.php). The rows are no longer reloaded byajax/dropdownChooseField.php/ajax/dropdownMandatory.php, which are removed.Other screens
Dropdown::showFromArray(), and the upload form uses the GLPI field macros.Html::getProgressBar().Code
header()+echo.tests/unit/InjectionTypeRowTest.php.Screenshots (if appropriate):
Before / after for each modified page: