From 58e8ae0759ccfa97c478ccae4e0778bdce70966f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 22 Jan 2026 22:40:02 +0000
Subject: [PATCH] =DirectoryManager.php updates, some javascript tweaks for CRUD.js, and minor style changes
---
inc/rest/routes/ContentRoutes.php | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/inc/rest/routes/ContentRoutes.php b/inc/rest/routes/ContentRoutes.php
index 8ff8c78..3fc50bb 100644
--- a/inc/rest/routes/ContentRoutes.php
+++ b/inc/rest/routes/ContentRoutes.php
@@ -36,7 +36,10 @@
{
$this->cache_name = 'user_content_' . get_current_user_id();
parent::__construct();
- $this->cache->clear();
+ if (JVB_TESTING) {
+ $this->cache->clear();
+ }
+
$this->action = 'dash-';
$this->operation_type = 'content_update';
add_action('init', [$this, 'registerContentExecutors'], 5);
@@ -613,6 +616,8 @@
return ['success' => false, 'message' => 'No permission'];
}
+ error_log('[Processing Timeline Post...');
+
$ignore = ['content', 'user'];
$this->fields = jvbGetFields($post_data['content']);
$this->initTimelineFields($post_data['content']);
@@ -701,7 +706,8 @@
]);
$prevDate = null;
-
+ $latest_date = null;
+ $earliest_date = null;
foreach ($post_data['timeline'] as $order => $timeline) {
// Get unique fields for this specific timeline entry
$allowedFields = array_filter($timeline, function ($key) use ($ignore) {
--
Gitblit v1.10.0