diff --git a/Helper/OrganonProjectHelper.php b/Helper/OrganonProjectHelper.php index 26a73d0..0179a52 100644 --- a/Helper/OrganonProjectHelper.php +++ b/Helper/OrganonProjectHelper.php @@ -9,7 +9,11 @@ use Kanboard\Core\Base; * * Resolves the 3-state "emphasize due date" setting for the CURRENT board (read from the route * project_id, which the router populates for pretty URLs before the layout renders): - * per-board '1' -> on, '0' -> off, 'default'/absent -> follow the LIVE global default. + * per-board 'on' -> on, 'off' -> off, 'default'/absent -> follow the LIVE global default. + * + * The stored values are the non-falsy strings 'on'/'off' (not '1'/'0'): Kanboard's + * MetadataModel::get() uses `?:`, and PHP treats the string "0" as falsy, so a stored "0" would + * come back as the 'default' fallback and "Always off" would never be honored. */ class OrganonProjectHelper extends Base { @@ -31,11 +35,11 @@ class OrganonProjectHelper extends Base $value = $this->projectMetadataModel->get($project_id, self::EMPHASIZE_KEY, 'default'); - if ($value === '1') { + if ($value === 'on') { return true; } - if ($value === '0') { + if ($value === 'off') { return false; } diff --git a/Plugin.php b/Plugin.php index 0807b65..2198924 100644 --- a/Plugin.php +++ b/Plugin.php @@ -83,7 +83,7 @@ class Plugin extends Base public function getPluginVersion() { - return '1.4.1'; + return '1.4.2'; } public function getPluginHomepage() diff --git a/Template/layout/emphasize_duedate.php b/Template/layout/emphasize_duedate.php index 4d58e81..35755e8 100644 --- a/Template/layout/emphasize_duedate.php +++ b/Template/layout/emphasize_duedate.php @@ -1,3 +1,3 @@ OrganonProjectHelper->isEmphasizeDueDate()): ?> - + diff --git a/Template/project/integration.php b/Template/project/integration.php index e4e0273..db36918 100644 --- a/Template/project/integration.php +++ b/Template/project/integration.php @@ -1,4 +1,4 @@ - +
diff --git a/VERSION b/VERSION index cd4ed7f..e0d256a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -OrganonTweaks v1.4.1 +OrganonTweaks v1.4.2