-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix FAQ/KB #12922
Merged
trasher
merged 4 commits into
glpi-project:10.0/bugfixes
from
AdrienClairembault:fix/kb
Oct 12, 2022
Merged
Fix FAQ/KB #12922
trasher
merged 4 commits into
glpi-project:10.0/bugfixes
from
AdrienClairembault:fix/kb
Oct 12, 2022
Conversation
This file contains 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
AdrienClairembault
force-pushed
the
fix/kb
branch
from
October 10, 2022 09:07
2ff4b1d
to
ed435bf
Compare
Closed
cedric-anne
reviewed
Oct 10, 2022
Co-authored-by: Cédric Anne <cedric.anne@gmail.com>
btry
reviewed
Oct 10, 2022
cedric-anne
approved these changes
Oct 11, 2022
orthagh
approved these changes
Oct 11, 2022
trasher
approved these changes
Oct 11, 2022
Wait before merge, I've got one final check to do following internal ref feedback |
Everything seems to be OK, the issue found in the internal ref was related to another issue directly in formcreator this time (see PR mentioned above). |
Rom1-B
approved these changes
Oct 12, 2022
btry
approved these changes
Oct 12, 2022
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.
The FAQ / KB view does not seem to work properly.
You can see on the following images that the category tree indicate that some articles should be visible, however when you click on the category you find out that there is no valid articles:
The code handling this list was hard to read because it was handling two different cases (FAQ and KB) at the same time.
I've:
Regarding the specific error in the images above, I think the
is_faq => 1
condition was not properly applied for self-service users (it was thrown in anOR
clause with other criteria that should only be used for the KB side, not the FAQ).The new code handle it correctly as it separate KB and FAQ more cleanly, thus only applying the correct condition.
More details on the FAQ / KB expected restrictions can be found here : https://glpi-user-documentation.readthedocs.io/fr/latest/modules/tools/knowledgebase.html