Repository navigation
[Fix]: unclear and false positive warnings + an issue with additional informations targetting same field name over differents items (Glpi 11) - #695
Conversation
…e with several complementary informatinons targetting the same field on different objetcts
Lainow
left a comment
There was a problem hiding this comment.
The ERROR_NAME_NOT_MAPPED message is misleading. The check (inc/commoninjectionlib.class.php:2344) also triggers when the “Description” column is properly mapped but empty in that row. The user then sees “a mapping is needed” and goes looking for a mapping that already exists.
|
Once it's fixed, you can open the same PR for version 12 of the GLPI plugin(if you can reproduce the issue there as well), please. |
Thanks for the warning, i'll do it once this one is validated to get the good version |
Since the context doesn't allow to tell a missing mapping from an empty value apart, I updated the message to cover both possibilities, so the user can check both. |
Note
This PR also exists for Glpi 12. #701
Description
Unit tests to cover changes and ensure no regression
Screenshots (if appropriate):
Before solving the field names display issue:

After:
