@@ -556,7 +557,12 @@ abstract class AbstractBuildForm {
...
@@ -556,7 +557,12 @@ abstract class AbstractBuildForm {
$record=array();
$record=array();
if($recordId!=0){
if($recordId!=0){
$record=$this->dbArray[$this->dbIndexData]->sql("SELECT * FROM `$tableName` WHERE `$primaryKey`=?",ROW_EXPECT_1,[$recordId],"Record to load not found.");
$record=$this->dbArray[$this->dbIndexData]->sql("SELECT * FROM `$tableName` WHERE `$primaryKey`=?",ROW_EXPECT_1,[$recordId],"Record to load not found. ".FormAsFile::errorHintFormImport($tableName));
}
if(isset($record[F_FILE_STATS])){
// why: The column "fileStats" in the Form table is modified when a form is exported to a file but nothing else changes.
$record=$this->dbArray[$this->dbIndexData]->sql("SELECT * FROM `$tableName` WHERE `$primaryKey`=?",ROW_EXPECT_1,[$recordId],"Record to lock not found. ".FormAsFile::errorHintFormImport($tableName));
$record=$this->dbArray[$this->dbIndexData]->sql("SELECT * FROM `$tableName` WHERE `$primaryKey`=?",ROW_EXPECT_1,[$recordId],"Record to lock not found. ".FormAsFile::errorHintFormImport($tableName));
if(isset($record[F_FILE_STATS])){
// why: The column "fileStats" in the Form table is modified when a form is exported to a file but nothing else changes.