Skip to content

Commit

Permalink
fix(formanswer): PHP 8.1 compatibility: null passed instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Oct 4, 2022
1 parent b008442 commit 297fb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/targetchange.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
];
foreach ($changeFields as $changeField) {
$data[$changeField] = $this->prepareTemplate(
$this->fields[$changeField],
$this->fields[$changeField] ?? '',
$formanswer,
$changeField == 'content' // only content supports rich text
);
Expand Down

0 comments on commit 297fb27

Please sign in to comment.