Skip to content

Commit

Permalink
fix(question_condition): inverted import condition
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 22, 2019
1 parent 65cadb3 commit 1299b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/question_condition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static function import(PluginFormcreatorImportLinker $importLinker, $ques

$item = new static();

if ($showField
if (!$showField
= plugin_formcreator_getFromDBByField(new PluginFormcreatorQuestion(),
'uuid',
$condition['show_field'])) {
Expand Down
2 changes: 1 addition & 1 deletion inc/target.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public static function import($forms_id = 0, $target = []) {
$target['_skip_create_actors'] = true;

// escape text fields
foreach (['name', 'title'] as $key) {
foreach (['name'] as $key) {
$target[$key] = $DB->escape($target[$key]);
}

Expand Down

0 comments on commit 1299b77

Please sign in to comment.