View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 18265 | Bug reports | Response browsing | public | 2022-07-19 21:53 | 2026-10-20 17:06 |
| Reporter | gabrieljenik | Assigned To | c_schmitz | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 3.28.x | ||||
| Summary | 18265: beforeDataEntryImport is not called consistently | ||||
| Description | When importing responses from a table, the 'beforeDataEntryImport' event is executed before each response is saved, while when importing a CSV it is executed AFTER saving it. | ||||
| Steps To Reproduce | Steps to reproduce(Replace this text with detailed step-by-step instructions on how to reproduce the issue) Expected result(Write here what you expected to happen) Actual result(Write here what happened instead) | ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | 3.x | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Mysql | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 7 | ||||
| Git branch / Pull Request URL | N/A | ||||
Then we have 2 events for the same action (with before) Personally : i manually disable this one on a fork to get some microseconds on each line imported (whan you have 10 000 lines : it' really improve). Can we delete it ? |
|
|
I wouldn't remove it. Backward compatibility on one side. |
|
|
VV file (and SQL import) take a long long time when SQL server is on another machine. Since it's not documented : it's not in API … |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40832 |
|
|
Fixed in Release 7.7.0+261020 |
|
|
LimeSurvey: master 3217198a 2026-10-13 18:20 Details Diff |
Fixed issue 18265: Plugins received the beforeDataEntryImport event before restored responses were saved, and also for responses that were not restored Dev When restoring archived responses on activation, dispatch the event per validated response after its batch was inserted, with the inserted values on the model, like the CSV/VV and archived table imports Dev Also no longer runs an empty batch insert (exception) when a response fails validation at a batch boundary |
Affected Issues 18265 |
|
| mod - application/helpers/admin/import_helper.php | Diff File | ||
| mod - tests/functional/backend/ImportResponsesTest.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-07-19 21:53 | gabrieljenik | New Issue | |
| 2022-07-19 21:53 | gabrieljenik | Issue generated from: 18264 | |
| 2022-07-19 21:53 | gabrieljenik | Status | new => confirmed |
| 2022-07-20 11:38 | DenisChenu | Note Added: 71050 | |
| 2022-07-20 11:38 | DenisChenu | Bug heat | 0 => 2 |
| 2022-07-20 15:46 | gabrieljenik | Note Added: 71059 | |
| 2022-07-20 15:46 | gabrieljenik | Bug heat | 2 => 4 |
| 2022-07-20 19:07 | DenisChenu | Note Added: 71060 | |
| 2026-10-13 18:20 | c_schmitz | Changeset attached | => LimeSurvey master 3217198a |
| 2026-10-13 18:20 | c_schmitz | Note Added: 86437 | |
| 2026-10-13 18:20 | c_schmitz | Assigned To | => c_schmitz |
| 2026-10-13 18:20 | c_schmitz | Status | confirmed => resolved |
| 2026-10-13 18:20 | c_schmitz | Resolution | open => fixed |
| 2026-10-13 18:20 | c_schmitz | Bug heat | 4 => 6 |
| 2026-10-20 17:06 | LimeBot | Note Added: 86607 | |
| 2026-10-20 17:06 | LimeBot | Status | resolved => closed |
| 2026-10-20 17:06 | LimeBot | Bug heat | 6 => 8 |