mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Fix issue processwire/processwire-issues#1197
This commit is contained in:
@@ -929,7 +929,8 @@ class ProcessPageEdit extends Process implements WirePageEditor, ConfigurableMod
|
|||||||
foreach($contentTab as $inputfield) {
|
foreach($contentTab as $inputfield) {
|
||||||
if(!$tabOpen && $inputfield->className == 'InputfieldFieldsetTabOpen') {
|
if(!$tabOpen && $inputfield->className == 'InputfieldFieldsetTabOpen') {
|
||||||
// open new tab
|
// 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) {
|
if($this->isPost) {
|
||||||
// only remove non-visible tabs when in post/save mode, for proper processInput()
|
// only remove non-visible tabs when in post/save mode, for proper processInput()
|
||||||
if(!$tabViewable) $contentTab->remove($inputfield);
|
if(!$tabViewable) $contentTab->remove($inputfield);
|
||||||
|
Reference in New Issue
Block a user