From 474109a5df0a06f5343ab184838fe2d80e3872a8 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 11 Jan 2026 19:23:20 +0000
Subject: [PATCH] =Fixed timeline CRUD.js issue where this.activeItem was set null when we still needed it

---
 inc/helpers/saveFields.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/inc/helpers/saveFields.php b/inc/helpers/saveFields.php
index 6d52b7e..bf03102 100644
--- a/inc/helpers/saveFields.php
+++ b/inc/helpers/saveFields.php
@@ -6,6 +6,9 @@
 
 
 function jvbNoSaveIt(int $postID, \WP_Post $post): bool {
+	if (!$postID || $postID === 0) {
+		return true;
+	}
 	$postType = jvbNoBase($post->post_type);
 	if (!array_key_exists($postType, JVB_CONTENT)){
 		return true;

--
Gitblit v1.10.0