From fff721dd185f5b97f7ae7a6e64189e55887ff590 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 05 Jul 2026 18:36:57 +0000
Subject: [PATCH] =Cleaning up the Square integration (still a bit more to do yet). Also majorly overhauled /rest/ files to ignore a rest request 'user' paramater, and rely on get_current_user_id() instead.
---
base/SchemaHelper.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/base/SchemaHelper.php b/base/SchemaHelper.php
index ac83573..75e619a 100644
--- a/base/SchemaHelper.php
+++ b/base/SchemaHelper.php
@@ -275,6 +275,10 @@
$className = $config['type'];
unset($config['type']);
$class = new $className();
+ if (array_key_exists('id', $config)) {
+ $class->setId($config['id']);
+ unset($config['id']);
+ }
foreach ($config as $property => $value) {
--
Gitblit v1.10.0