From 5cd322446a814489961012644eb2191a8d499b5e Mon Sep 17 00:00:00 2001 From: interlope Date: Mon, 8 Jun 2026 19:55:27 +0200 Subject: [PATCH] Refactor auto-export settings: Add hidden input for checkbox values to ensure proper boolean handling in form submission. --- plugin.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugin.php b/plugin.php index a4785d0..3feba5d 100644 --- a/plugin.php +++ b/plugin.php @@ -56,10 +56,10 @@ class pluginBluditGithub extends Plugin $html .= '
'; $html .= ''; $html .= '
'; - $html .= ''; + $html .= ''; $html .= '
'; $html .= '
'; - $html .= ''; + $html .= ''; $html .= '
'; $html .= '
'; @@ -82,10 +82,6 @@ class pluginBluditGithub extends Plugin { parent::post(); - $this->db['exportDraftsAuto'] = (isset($_POST['exportDraftsAuto']) && $_POST['exportDraftsAuto']) ? true : false; - $this->db['exportPublishedAuto'] = (isset($_POST['exportPublishedAuto']) && $_POST['exportPublishedAuto']) ? true : false; - $this->db->save(); - if (!empty($_POST['bulkExportAll'])) { $this->bulkExport(true); } elseif (!empty($_POST['bulkExportPublished'])) {