Skip to content

Commit

Permalink
fix(form): version comparison for export / import
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault committed Jul 9, 2020
1 parent eb6f43e commit d9dff6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ public function importJson($params = []) {
continue;
}
if (isset($forms_toimport['schema_version'])) {
if (($forms_toimport['schema_version']) != PLUGIN_FORMCREATOR_SCHEMA_VERSION) {
if (($forms_toimport['schema_version']) != PLUGIN_FORMCREATOR_SCHEMA_VERSION . '.0') {
Session::addMessageAfterRedirect(
__("Forms import impossible, the file was generated with another version", 'formcreator'),
false, ERROR
Expand Down

0 comments on commit d9dff6c

Please sign in to comment.