From 51c04912dd82476e6dc7488d3c525f53dca670a7 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 10 Feb 2026 02:39:19 +0000
Subject: [PATCH] =minor fix to edit form in CRUDSkeleton.php. Still need to determine why taxonomy fields aren't rendering
---
inc/managers/CRUDManager.php | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/inc/managers/CRUDManager.php b/inc/managers/CRUDManager.php
index d425070..cec8688 100644
--- a/inc/managers/CRUDManager.php
+++ b/inc/managers/CRUDManager.php
@@ -14,7 +14,7 @@
*/
class CRUD {
protected CRUDSkeleton $skeleton;
- protected CacheManager $cache;
+ protected Cache $cache;
protected array $config;
protected string $content;
protected array $taxonomies = [];
@@ -39,7 +39,11 @@
$this->user_id = get_current_user_id();
$this->config = $this->constant[$content];
$this->content = $content;
- $this->cache = CacheManager::for($content);
+ $this->cache = Cache::for('crud')->connect('post')->connect('taxonomy');
+
+ if (JVB_TESTING) {
+ $this->cache->flush();
+ }
// Create and configure skeleton
$this->skeleton = new CRUDSkeleton();
@@ -59,8 +63,6 @@
);
// Initialize meta
- $this->skeleton->initMeta($this->type, $this->content);
-
$this->skeleton->addSearch();
// Timeline if applicable
--
Gitblit v1.10.0