Skip to content

Commit

Permalink
Update DocumentCreate.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathologic authored Jul 18, 2024
1 parent 809468b commit f676196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/Documents/DocumentCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ function () {
});
});
foreach ($tmplvars as $tmplvar) {
if (isset($this->documentData[$tmplvar->name]) && !is_null($this->documentData[$tmplvar->name]) && $this->documentData[$tmplvar->name] != $tmplvar->default_text) {
if(!isset($this->documentData[$tmplvar->name])) continue;
if (!is_null($this->documentData[$tmplvar->name]) && $this->documentData[$tmplvar->name] != $tmplvar->default_text) {
$this->tvs['save'][] = ['id' => $tmplvar->id, 'value' => $this->documentData[$tmplvar->name]];
} else {
$this->tvs['delete'][] = $tmplvar->id;
Expand Down

0 comments on commit f676196

Please sign in to comment.