Skip to content
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 #18473: Survey listing : multiple call of template #3738

Merged
merged 5 commits into from Mar 5, 2024

Conversation

Shnoulle
Copy link
Collaborator

Dev: avoid multiple call of TemplateConfiguration::model()->search()

…of surveys

Dev: avoid multiple call of TemplateConfiguration::model()->search()
@Shnoulle
Copy link
Collaborator Author

Clearly need a better solution here :

  1. no need to call search to have only the list of templet
  2. need only the template name from DB

Dev: getTemplateList as static
Dev: getTemplateList ligther request
Dev: getTemplateList return only valid folders
@Shnoulle
Copy link
Collaborator Author

Ok, better fix now !

Copy link
Contributor

@lajosarpad lajosarpad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good, we have a duplicated variable initialization though and we will need to get rid of that

application/models/Template.php Show resolved Hide resolved
@Shnoulle Shnoulle added Code review done Version checked for code issue without testing and removed Needs code review labels Feb 24, 2024
@tiborpacalat tiborpacalat added Tested OK This PR has been tested by QA and works as expected and removed Needs testing labels Mar 5, 2024
@tiborpacalat tiborpacalat merged commit bbc3eb6 into master Mar 5, 2024
20 checks passed
@tiborpacalat tiborpacalat deleted the bug/19371_partial_template branch March 5, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code review done Version checked for code issue without testing Tested OK This PR has been tested by QA and works as expected
Projects
None yet
4 participants