Issue Bug Closed

#59893Backend search box: use label_alt field value if label is emtpy

Marcin Sągol 06/26/14, 10:39 updated 10/02/18, 11:54

Description

Through TCA we can configure columns that are used to display record name (for example on the records list):

$TCA['tx_foo_domain_model_bar'] = array(
    'ctrl' => array(
        'title'    => 'Some title',
        'label' => 'name',
        'label_alt' => 'name',
    ),
);

If column defined as label is empty, than label_alt is used (if defined). This works fine in the List module.
If we use backend searchbox to find records, it seems that only label is used and label_alt ignored. It would be nice if the searchbox could respect also label_alt option.

Reviews 2