Closed dijarbytyci closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
1 Code Smell
No Coverage information
0.0% Duplication
Yes, your are right, there was a problem. I think findOneByUid() is not working as findByUid(): https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ExtensionArchitecture/Extbase/Reference/Domain/Repository.html#repository-findbyuid-and-language-overlay-modes Therefore a modification is necessary, but I think changing default setting with initializeObject() is not really necessary. But there are some more other changes necessary.
I have solved it without changing the $querySettings. Can you test version 3.5.6?
@bihor We'll be testing it this week. I'll let you know as soon as we tested it.
@bihor Everything is working fine. Thank you!
Disabling LanguageOverlayMode because it sets uid from translated Quizes to the uid of the parent (default language). This throws an error in the method checkQuizAccess in the QuizController class after the showAction was called.
I don't know if this is the best fix but we'll need this piece of code to make it run in other languages