fix hidden properties
This commit is contained in:
parent
aa427bb585
commit
b08fe58d42
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ class Manage extends Process
|
||||||
foreach ($rs as $key => $value) {
|
foreach ($rs as $key => $value) {
|
||||||
$distrib = in_array($value->ns, $vars->cleaner->distributed());
|
$distrib = in_array($value->ns, $vars->cleaner->distributed());
|
||||||
|
|
||||||
if ($distrib && My::settings()->get('dcproperty_hide')) {
|
if ($distrib && My::settings()->getGlobal('dcproperty_hide')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
echo
|
echo
|
||||||
|
@ -224,7 +224,7 @@ class Manage extends Process
|
||||||
(new Form('option'))->method('post')->action(dcCore::app()->admin->getPageURL())->fields([
|
(new Form('option'))->method('post')->action(dcCore::app()->admin->getPageURL())->fields([
|
||||||
(new Para())->items([
|
(new Para())->items([
|
||||||
(new Submit('option-action'))->value(My::settings()->get('dcproperty_hide') ? __('Show Dotclear default properties') : __('Hide Dotclear default properties')),
|
(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)),
|
(new Hidden(['part'], $vars->cleaner->id)),
|
||||||
... My::hiddenFields(),
|
... My::hiddenFields(),
|
||||||
]),
|
]),
|
||||||
|
|
Loading…
Reference in a new issue