View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16673 | Bug reports | Plugins | public | 2020-09-18 11:09 | 2021-03-29 12:37 |
Reporter | asshank | Assigned To | p_teichmann | ||
Priority | low | Severity | tweak | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.3.16 | ||||
Summary | 16673: afterFindSurvey is fired multiple times | ||||
Description | The afterFindSurvey event is fired every type a Question is rendered (it seems). I stumbled upon this, because I used a sendmail option in a plugin on the event. | ||||
Steps To Reproduce | N.A. | ||||
Additional Information | You should expect it to fire once, I guess @denis: BTW https://manual.limesurvey.org/AfterFindSurvey should state 4.3.16 also! | ||||
Tags | No tags attached. | ||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | 4.3.16 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | N.A. | ||||
Database type & version | N.A. | ||||
Server OS (if known) | Centos 7 | ||||
Webserver software & version (if known) | apache | ||||
PHP Version | 7.4 | ||||
Not only after question render! The survey I tested fired 3748 times! (767 questions) |
|
Maybe we can move it to the satci part of find ? twigreneder seems to happen a lot too. |
|
It wil reduce processor cycles! It is massive! Who knows: renderspeed improvement? |
|
With Sample survey https://github.com/LimeSurvey/LimeSurvey/blob/master/docs/demosurveys/ls3_sample_survey_multilingual_fr_de_en_it.lss afterFindSurvey happen
There are clearly a new issue here. Plugin used : https://gitlab.com/SondagesPro/TestDemoAndDevel/checkAfterFindSurvey/-/blob/master/checkAfterFindSurvey.php |
|
But more :! my 3.X version for testing have already a lot of plugins … |
|
Seems we don't use findByPk in 3.X on some function. We must use findByPk … for Survey (and anywhere it's possible) |
|
this issue should also be addressed to 3xLTS |
|
No : 3LTS : event happen 2 times only, no real issue in LTS. Can be improved, but still no a real issue. Did you test my plugin ? |
|
Strange. I don't see why it is called so few times on LSv3 if the event happens afterFind. As per the definition of the manual, I would just trigger the event manually from the survey taking side, instead of attaching it to the Am I right? Or am I missing something? |
|
findByPk don't throw afterFind event.
Plugin can need to update attribute each time it was loaded. Even o admin part : it don't happen a lot, 3 times for Survey settings. Currently plugin event happen in admin , stay in admin please … Dev can control where it's call with |
|
@p_teichmann : warning : if you update this : you broke API and potential plugin …
Right about manual : but need a model->afterFind event. Maybe
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31400 |
|
Fixed in Release 4.4.15+210329 |
|
Manual fixed : https://manual.limesurvey.org/index.php?title=AfterFindSurvey&type=revision&diff=161387&oldid=154072 |
|
LimeSurvey: master 6ef50d65 2021-03-26 11:01 Details Diff |
Fixed issue 16673: afterFindSurvey fired to many times |
Affected Issues 16673 |
|
mod - application/models/QuestionAttribute.php | Diff File | ||
LimeSurvey: master 43c52d3a 2021-03-26 16:12 Details Diff |
Fixed issue 16673: Plugin event afterFindSurvey is fired too many times |
Affected Issues 16673 |
|
mod - application/models/QuestionAttribute.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-09-18 11:09 | asshank | New Issue | |
2020-09-18 11:52 | asshank | Note Added: 59873 | |
2020-09-19 18:49 | DenisChenu | Issue Monitored: DenisChenu | |
2020-09-19 18:49 | DenisChenu | Note Added: 59885 | |
2020-09-19 21:07 | asshank | Note Added: 59887 | |
2020-09-21 15:39 | DenisChenu | Note Added: 59905 | |
2020-09-21 15:41 | DenisChenu | Note Added: 59907 | |
2020-09-21 15:41 | DenisChenu | File Added: limesurvey_survey_SampleAllInOne.lss | |
2020-09-21 15:41 | DenisChenu | Assigned To | => cdorin |
2020-09-21 15:41 | DenisChenu | Status | new => assigned |
2020-09-21 15:42 | DenisChenu | Severity | minor => tweak |
2020-09-21 15:46 | DenisChenu | Note Added: 59910 | |
2020-09-21 21:19 | bismark | Note Added: 59912 | |
2020-09-22 08:51 | DenisChenu | Note Added: 59917 | |
2020-09-22 15:34 | gabrieljenik | Note Added: 59925 | |
2020-09-22 16:04 | DenisChenu | Note Added: 59926 | |
2020-09-22 16:04 | DenisChenu | File Added: Capture d’écran du 2020-09-22 16-02-13.png | |
2021-02-04 10:15 | cdorin | Status | assigned => new |
2021-02-07 12:26 | cdorin | Assigned To | cdorin => |
2021-02-07 12:26 | cdorin | Priority | none => low |
2021-02-07 12:26 | cdorin | Status | new => confirmed |
2021-02-07 12:26 | cdorin | Sync to Zoho Project | => |Yes| |
2021-03-25 12:30 | p_teichmann | Assigned To | => p_teichmann |
2021-03-25 12:30 | p_teichmann | Status | confirmed => assigned |
2021-03-25 12:35 | DenisChenu | Note Added: 63598 | |
2021-03-26 15:13 | c_schmitz | Changeset attached | => LimeSurvey master 43c52d3a |
2021-03-26 15:13 | p_teichmann | Changeset attached | => LimeSurvey master 6ef50d65 |
2021-03-26 15:13 | p_teichmann | Note Added: 63655 | |
2021-03-26 15:13 | p_teichmann | Resolution | open => fixed |
2021-03-29 12:31 | lime_release_bot | Sync to Zoho Project | Yes => |Yes| |
2021-03-29 12:31 | lime_release_bot | Note Added: 63686 | |
2021-03-29 12:31 | lime_release_bot | Status | assigned => closed |
2021-03-29 12:37 | DenisChenu | Note Added: 63697 | |
2021-08-06 04:20 | guest | Bug heat | 12 => 14 |