Skip to content

Commit 297fb27

Browse files
committed
fix(formanswer): PHP 8.1 compatibility: null passed instead of string
1 parent b008442 commit 297fb27

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
@@ -667,7 +667,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
667667
];
668668
foreach ($changeFields as $changeField) {
669669
$data[$changeField] = $this->prepareTemplate(
670-
$this->fields[$changeField],
670+
$this->fields[$changeField] ?? '',
671671
$formanswer,
672672
$changeField == 'content' // only content supports rich text
673673
);

0 commit comments

Comments
 (0)