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
Fixed issue #16669: getQuestionAttributes function don't get the plugins attribute #1843
Conversation
…gins attribute - Added new function 'getAttributesFromPlugin' to QuestionAttributeHelper, which calls the old 'getOwnQuestionAttributesViaPlugin' function and filters by question type. - Use the new function in Question::getAdvancedSettingsWithValues()
…gins attribute - Added more helper methods
This has the same issue as before - the plugin event is run from two different places. Maybe it's the only way in LS4, since, sadly, the code lost a lot of quality compared to LS3. Still I wonder if it's possible to use ONLY the method "getQuestionThemeAttributeValues" to fetch question theme attributes. Or, is it possible to have ONE function to get question theme attributes (together with their values, if any)? And fire the event there? Since getQuestionThemeAttributeValues() is static, it can be moved to a service class, e.g. QuestionAttributeHelper. getAdditionalAttrFromExtendedTheme - why is this needed? Additional to what? |
Why do you wan't fir it from there? I was actually thinking about removing it from there. |
Sure, ping me tomorrow. |
After call, this ticket was created: https://bugs.limesurvey.org/view.php?id=17242 |
Merged after deciding to continue with more clean-up PRs. Ticket for unit-test: https://bugs.limesurvey.org/view.php?id=17241 Duplicate ticket for clean-up: https://bugs.limesurvey.org/view.php?id=17240 |
@olleharstedt About issue with https://manual.limesurvey.org/NewQuestionAttributes For example :
Nothing is shown
Show a dropdown with 'array' (and break with debug) Report as issue or API upgrade need updating manual ? |
Oh no … ok : before 4.5.0 : need
for 4.5 : come back with compatibility of 3.X … Still some issue with help and with switch |
Report everything, assign to Gabriel. :) 🥳 |
Or tell me which function that needs unit-test to stay correct. |
Picking up plugin attributes and merging them with theme and std ones.