1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 08:17:12 +02:00
This commit is contained in:
Ryan Cramer
2020-07-24 11:26:19 -04:00
parent 81686d9864
commit b40a9e0de6

View File

@@ -929,7 +929,8 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
foreach($contentTab as $inputfield) {
if(!$tabOpen && $inputfield->className == 'InputfieldFieldsetTabOpen') {
// open new tab
$tabViewable = $this->page->viewable($inputfield->attr('name'));
$showable = $this->isTrash ? 'editable' : 'viewable';
$tabViewable = $this->page->$showable($inputfield->attr('name'));
if($this->isPost) {
// only remove non-visible tabs when in post/save mode, for proper processInput()
if(!$tabViewable) $contentTab->remove($inputfield);