Commit c717d637 authored by Nigel McNie's avatar Nigel McNie
Browse files

Wrap the LEAP import process() method in a database transaction.

parent 6b651d0b
......@@ -67,6 +67,8 @@ class PluginImportLeap extends PluginImport {
}
public function process() {
db_begin();
$data = $this->get('data');
$filename = get_config('dataroot') . $data['filename'];
$this->trace('Loading import from ' . $filename);
......@@ -95,6 +97,7 @@ class PluginImportLeap extends PluginImport {
$this->snapshot('imported data based on load mapping');
$this->import_completed();
db_commit();
}
private function ensure_document_valid() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment