Skip to content

Commit 1299b77

Browse files
committed
fix(question_condition): inverted import condition
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 65cadb3 commit 1299b77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/question_condition.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static function import(PluginFormcreatorImportLinker $importLinker, $ques
108108

109109
$item = new static();
110110

111-
if ($showField
111+
if (!$showField
112112
= plugin_formcreator_getFromDBByField(new PluginFormcreatorQuestion(),
113113
'uuid',
114114
$condition['show_field'])) {

inc/target.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static function import($forms_id = 0, $target = []) {
276276
$target['_skip_create_actors'] = true;
277277

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

0 commit comments

Comments
 (0)