We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb1bc3 commit 6f56484Copy full SHA for 6f56484
inc/field/filefield.class.php
@@ -100,11 +100,15 @@ public function serializeValue(): string {
100
}
101
102
public function deserializeValue($value) {
103
+ $this->uploadData = [];
104
+ $this->value = __('No attached document', 'formcreator');
105
+ if ($value === null) {
106
+ return;
107
+ }
108
$this->uploadData = json_decode($value, true);
109
if ($this->uploadData === null) {
110
$this->uploadData = [];
111
- $this->value = __('No attached document', 'formcreator');;
112
if (count($this->uploadData) > 0) {
113
$this->value = __('Attached document', 'formcreator');
114
0 commit comments