Skip to content

Commit d9dff6c

Browse files
fix(form): version comparison for export / import
1 parent eb6f43e commit d9dff6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/form.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ public function importJson($params = []) {
17921792
continue;
17931793
}
17941794
if (isset($forms_toimport['schema_version'])) {
1795-
if (($forms_toimport['schema_version']) != PLUGIN_FORMCREATOR_SCHEMA_VERSION) {
1795+
if (($forms_toimport['schema_version']) != PLUGIN_FORMCREATOR_SCHEMA_VERSION . '.0') {
17961796
Session::addMessageAfterRedirect(
17971797
__("Forms import impossible, the file was generated with another version", 'formcreator'),
17981798
false, ERROR

0 commit comments

Comments
 (0)