From 7a9054bb3f033c98067b3196378311dae54c5fbf Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 20 Jan 2026 01:31:53 +0000
Subject: [PATCH] =OperationQueue refactor to the JVBase/managers/queue namespace

---
 inc/rest/routes/FormRoutes.php |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/inc/rest/routes/FormRoutes.php b/inc/rest/routes/FormRoutes.php
index 5695d64..1201a8e 100644
--- a/inc/rest/routes/FormRoutes.php
+++ b/inc/rest/routes/FormRoutes.php
@@ -323,7 +323,7 @@
 		$form = [];
 		foreach ($form_config['fields'] as $field_name => $config) {
 			// Skip file upload fields
-			if (in_array($config['type'], ['upload'])) {
+			if ($config['type'] == 'upload') {
 				continue;
 			}
 
@@ -354,7 +354,7 @@
 		}
 
 		// Send the email
-		$email_sent = JVB()->email()->sendEmail(
+		return JVB()->email()->sendEmail(
 			$to,
 			$subject,
 			$body,
@@ -362,8 +362,6 @@
 			$headers,
 			$attachments
 		);
-
-		return $email_sent;
 	}
 
 	/**
@@ -376,7 +374,7 @@
 		}
 
 		$type = $field_config['type'] ?? 'text';
-		$type = $field_config['subType']?:$type;
+		$type = $field_config['subType'] ?? $type;
 
 		switch ($type) {
 			case 'phone':

--
Gitblit v1.10.0