View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
18265Bug reportsResponse browsingpublic2026-10-20 17:06
Reportergabrieljenik Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version3.28.x 
Summary18265: 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)

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)3.x
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version7
Git branch / Pull Request URLN/A

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2022-07-20 11:38

developer   ~71050

  1. This event add more and more time when importing VV file …
  2. This event are not documented in https://manual.limesurvey.org/Plugin_events
  3. We already have https://manual.limesurvey.org/Plugin_events#Dynamic_model_events_.28New_in_3.15.1_.29

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 ?

gabrieljenik

gabrieljenik

2022-07-20 15:46

developer   ~71059

I wouldn't remove it. Backward compatibility on one side.
On the other, I think is good to have it something specific for import.
I would say need to be enhanced: Adding import type, row source, ...

DenisChenu

DenisChenu

2022-07-20 19:07

developer   ~71060

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  …

c_schmitz

c_schmitz

2026-10-13 18:20

administrator   ~86437

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40832

LimeBot

LimeBot

2026-10-20 17:06

administrator   ~86607

Fixed in Release 7.7.0+261020

Related Changesets

LimeSurvey: master 3217198a

2026-10-13 18:20

c_schmitz


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

Issue History

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