Commit 06eceeb0 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #10778: Fix problem closing ZIP too early.

parent bcab1375
Pipeline #3542 passed with stages
in 4 minutes and 23 seconds
......@@ -672,11 +672,6 @@ class Save {
}
}
// Close Zip
if (false === $zip->close()) {
throw new \UserFormException("Failed to close ZIP.", ERROR_IO_ZIP_OPEN);
}
// Process
if (!isset($formElement[FE_SLAVE_ID])) {
$formElement[FE_SLAVE_ID] = '';
......@@ -694,9 +689,13 @@ class Save {
$this->evaluate->parse($formElement[FE_SQL_BEFORE]);
$this->doUploadSlave($formElement, UPLOAD_MODE_NEW);
$this->evaluate->parse($formElement[FE_SQL_AFTER]);
print_r(basename($stat['name']) . PHP_EOL);
}
}
// Close Zip
if (false === $zip->close()) {
throw new \UserFormException("Failed to close ZIP.", ERROR_IO_ZIP_OPEN);
}
}
/**
......
Supports Markdown
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