From b08fe58d4240fb31ceb79c17b01520e291b57810 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 29 Jul 2023 16:54:03 +0200 Subject: [PATCH] fix hidden properties --- src/Manage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Manage.php b/src/Manage.php index 2c10be2..dafa512 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -182,7 +182,7 @@ class Manage extends Process foreach ($rs as $key => $value) { $distrib = in_array($value->ns, $vars->cleaner->distributed()); - if ($distrib && My::settings()->get('dcproperty_hide')) { + if ($distrib && My::settings()->getGlobal('dcproperty_hide')) { continue; } echo @@ -224,7 +224,7 @@ class Manage extends Process (new Form('option'))->method('post')->action(dcCore::app()->admin->getPageURL())->fields([ (new Para())->items([ (new Submit('option-action'))->value(My::settings()->get('dcproperty_hide') ? __('Show Dotclear default properties') : __('Hide Dotclear default properties')), - (new Hidden('dcproperty_hide', (string) (int) My::settings()->get('dcproperty_hide'))), + (new Hidden('dcproperty_hide', My::settings()->get('dcproperty_hide') ? '0' : '1')), (new Hidden(['part'], $vars->cleaner->id)), ... My::hiddenFields(), ]),