Bug #82121

Deleting inline 1:1 relation throws error

Added by Tymoteusz Motylewski about 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-08-17
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

1) Given a 1:1 inline relation like https://github.com/TYPO3/styleguide/pull/102

  'inline_1' => [
      'exclude' => 1,
      'label' => 'inline_1',
      'config' => [
         'type' => 'inline',
         'foreign_table' => 'tx_styleguide_inline_1_1_child',
          'behaviour' => [
               'localizeChildrenAtParentLocalization' => true,
           ],
           'appearance' => [
               'showSynchronizationLink' => true,
               'showAllLocalizationLink' => true,
               'showPossibleLocalizationRecords' => true,
           ],
           'maxitems' => 1,
       ],
    ],

2) add a child relation
3) save the record
4) delete the relation
5) save the parent record
6) an error is thrown:


Uncaught TYPO3 Exception
#1437656081: Record with uid 2 from table tx_styleguide_inline_1_1_child not found (More information)

TYPO3\CMS\Backend\Form\Exception\DatabaseRecordException thrown in file
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractDatabaseRecordProvider.php in line 51.

21 TYPO3\CMS\Backend\Form\FormDataProvider\AbstractDatabaseRecordProvider::getRecordFromDatabase("tx_styleguide_inline_1_1_child", 2)

typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseEditRow.php:
00036:         }
00037: 
00038:         $databaseRow = $this->getRecordFromDatabase($result['tableName'], $result['vanillaUid']);
00039:         if (!array_key_exists('pid', $databaseRow)) {
00040:             throw new \UnexpectedValueException(

History

#1 Updated by Oliver Hader almost 2 years ago

  • Category set to FormEngine aka TCEforms

Also available in: Atom PDF