Project

General

Profile

Actions

Bug #81320

closed

Inserting in sys_refindex leads to SQL error message

Added by Helmut Hummel over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-05-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Given I have the following TCA field configuration:


        'multiple' => [
            'label' => 'Multiple',
            'config' => [
                'type' => 'group',
                'internal_type' => 'db',
                'allowed' => 'pages',
                'multiple' => true,
                'size' => 10,
            ],
        ],

When I select the same page multiple times in this record

I expect to be able to save the record without error and see the selected page multiple times in the select box

Actual result:

Exception is thrown:

An exception occurred while executing 'INSERT INTO `sys_refindex` (`tablename`, `recuid`, `field`, `flexpointer`, `softref_key`, `softref_id`, `sorting`, `deleted`, `workspace`, `ref_table`, `ref_uid`, `ref_string`, `hash`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["sys_category", 2, "multiple", "", "", "", 1, 0, 0, "pages", 437, "", "7534be502285b68ac2b24999aca60fe0"]: Duplicate entry '7534be502285b68ac2b24999aca60fe0' for key 'PRIMARY'

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #78829: Reference index causes duplicate references with different sorting valuesClosed2016-11-29

Actions
Actions

Also available in: Atom PDF