Project

General

Profile

Actions

Bug #58931

closed

Incorrect entries in table sys_refindex pointing always to table sys_file

Added by Dirk Rauscher over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-05-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

We are using a templavoila FCE which has a field for a link.
If selecting a link to a page(eg.123) a record is written into table sys_refindex.
But instead of referencing the selected page the record links to the table sys_file.
This happens if there are an entries in the tables "pages" and "sys_file" of the same uid (e.g. 123).
That leads to the unability of deleting this "accidently" referenced file because Typo3 assumes them to be still in use.

We digged into that behaviour and found the method TYPO3\CMS\Core\Database\ReferenceIndex:getRelations_procDB is most likely responsible for that.

This is our templavoila TO.

<field_link type="array">
   <tx_templavoila type="array">
      <title>Link</title>
      <sample_data type="array">
         <numIndex index="0"></numIndex>
      </sample_data>
      <eType>link</eType>
      <TypoScript><![CDATA[
         10 = TEXT
         10.field = field_label
         10.htmlSpecialChars = 1
         10.typolink.parameter.current = 1
      ]]></TypoScript>
      <proc type="array">
         <int>0</int>
     <HSC>0</HSC>
     <stdWrap></stdWrap>
      </proc>
      <preview></preview>
   </tx_templavoila>
   <TCEforms type="array">
      <label>Link</label>
      <config type="array">
         <type>input</type>
     <size>30</size>
     <max>256</max>
     <checkbox></checkbox>
     <eval>trim</eval>
     <wizards type="array">
        <_PADDING type="integer">2</_PADDING>
            <link type="array">
          <type>popup</type>
          <title>Link-Seite</title>
              <icon>link_popup.gif</icon>
              <script>browse_links.php?mode=wizard</script>
              <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
            </link>
         </wizards>
      </config>
   </TCEforms>
</field_link>
Actions #1

Updated by Daniel Goerz over 8 years ago

  • Status changed from New to Needs Feedback

Does this bug still occur in TYPO3 7 LTS and/or the master? And if so how can it be reproduced?

Actions #2

Updated by Riccardo De Contardi about 8 years ago

  • Status changed from Needs Feedback to Closed

90 days without feedback > closing this issue

If you think that this is the wrong decision or experience the issue again, then please open a new issue with a reference to this one

Thank you

Actions

Also available in: Atom PDF