Project

General

Profile

Actions

Feature #89223

open

Using columnsOnly creates a button to edit whole record.....

Added by Claus Harup over 4 years ago. Updated over 3 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2019-09-23
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:

Description

It has been a mystery to me for years why a "Edit whole record" button is created when 'columnsOnly' is used as parameter in links to edit various TCA records...
In my mind; 'columnsOnly' should restrict the editor to ONLY see these columns.....?!?!!?

In sysext/backend/Classes/Controller/EditDocumentController.php at line 1413:

// If only SOME fields are shown in the form, this will link the user to the FULL form:
if ($this->columnsOnly) {
    $columnsOnlyButton = $buttonBar->makeLinkButton()
        ->setHref($this->R_URI . '&columnsOnly=')
        ->setTitle($lang->getLL('editWholeRecord'))
        ->setIcon($this->moduleTemplate->getIconFactory()->getIcon(
            'actions-open',
            Icon::SIZE_SMALL
        ));

    $buttonBar->addButton($columnsOnlyButton, ButtonBar::BUTTON_POSITION_LEFT, 3);
}

Could some sort of extra configuration be added (&disableWholeRecord=1)


Files

screen.png (15.9 KB) screen.png Claus Harup, 2019-09-23 10:54
Actions

Also available in: Atom PDF