]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7871
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jan 2026 10:33:27 +0000 (11:33 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 Jan 2026 10:33:27 +0000 (11:33 +0100)
app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PDFFormOperation.php

index 460a4d1c79b26ce5e6f928bc6b994b5c4d380295..98acc4cc7f32dad44e7d2738b69f0444f4861c84 100644 (file)
@@ -52,6 +52,11 @@ trait PDFFormOperation
             }
             $fdfFields .= '<</T(' . utf8_decode($k) . ')/' . $val . '>>' . "\n";
         }
+
+        if (!$email) {
+            return ['error' => __('please fill a valid email')];
+        }
+
         $fdfFields .= '] >> >>
 endobj
 trailer
@@ -89,6 +94,8 @@ trailer
         unlink($fdf);
         unlink($tmp);
 
+        return ['ok' => true];
+
     }
 
     protected function _replace($c)