Skip to content

Commit e2288bf

Browse files
committed
fix(targetchange): fix reversed condition
breaks change generation
1 parent c807936 commit e2288bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/targetchange.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ public function save(PluginFormcreatorForm_Answer $formanswer) {
963963
];
964964
foreach ($changeFields as $changeField) {
965965
//TODO: 2.7.0 rename PluginFormcreatorTargetChange's comment into content
966-
if ($changeField == 'content') {
966+
if ($changeField != 'content') {
967967
// This handles mismatch of the column content in Change itemtype and comment in TargetChange itemtype
968968
$data[$changeField] = $this->fields[$changeField];
969969
} else {

0 commit comments

Comments
 (0)