Project

General

Profile

Actions

Bug #60357

open

Pasting a localized content element into another colPos fails

Added by Frank Gerards almost 10 years ago. Updated over 2 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Start date:
2014-07-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

Hi,

in TYPO3 6.2.3 , pasting a localized content element into an empty column fails.
The default language CE record is inserted correctly into the new column, the localized isnt.

Cause of the error could be:
- When pasting into an empty column with different uid than source column the default language's CE colPos is set correctly,
the translated CE records' colPos remains the OLD colPos of the source-column.

Steps to reproduce:

- Copy localized CE from an existing column
- Go to other page with different backend layout/different columns
- Paste localized CE into an EMPTY column

Actions #1

Updated by Frank Gerards almost 10 years ago

  • Assignee set to TYPO3 Release Team
Actions #2

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from New to Needs Feedback
  • Assignee changed from TYPO3 Release Team to Frank Gerards

this is my test, done with 6.2.14:

1) be layout for home page:

backend_layout {
    colCount = 2
    rowCount = 1
    rows {
        1 {
            columns {
                1 {
                    name = Main content
                    colPos = 0
                }
                2 {
                    name = Side Content
                    colPos = 1
                }
            }
        }
    }
}

2) be layout for all other pages:

backend_layout {
    colCount = 1
    rowCount = 2
    rows {
        1 {
            columns {
                1 {
                    name = my page col
                    colPos = 0
                }
            }
        }
        2 {
            columns {
                1 {
                    name = my other col
                    colPos = 2
                }
            }
        }

as you can see it has a different column with colpos=2, while home has colpos=1

3) default language:italian; add Website language: english (ID=1)

4) Home page > Side Content > create a text with image element (header:"prova contenuto per 60357" ID=70)

5) Home page > switch to view "languages" > translate the CE (header:"[Translate to English:] prova contenuto per 60357", ID=71)

6) Home page > list view > copy "[Translate to English:] prova contenuto per 60357"

7) go to another page > page module > paste into "my other col" (resulting copy has ID=74)

8) Result: the CE is in the correct column; editing the element the Column (colpos) is "my other col"

Do you think it is sufficient to consider it closed, or should I perform more tests?

Thank you

Actions #3

Updated by Daniel Goerz over 8 years ago

  • Subject changed from Pasting a localized content element into empty column fails to Pasting a localized content element into another colPos fails
  • Status changed from Needs Feedback to New
  • Target version set to 7 LTS
  • TYPO3 Version changed from 6.2 to 7

Confirmed on 7.6-dev.

The translation of the copied content element is on the correct page but in the wrong colPos.

Actions #4

Updated by Daniel Goerz over 8 years ago

  • Assignee deleted (Frank Gerards)
  • PHP Version changed from 5.4 to 5.5
  • Sprint Focus set to Stabilization Sprint
Actions #5

Updated by Oliver Hader over 8 years ago

Let me create some functional tests first to ensure DataHandler is working correctly. If so, the issue might be related to wrong/incomplete command-map data being transferred (search for 'paste' in DataHandler::process_cmdmap())

Actions #6

Updated by Riccardo De Contardi over 8 years ago

  • Target version changed from 7 LTS to Candidate for Major Version
Actions #7

Updated by Riccardo De Contardi about 6 years ago

I probably did something wrong years ago... I repeated the test with TYPO3 8.7.12

1) Page AAAA with colPos 0,1 in two languages
2) Page BBBB with colPos 0,2 in two languages
3) Create a CE in AAAA on colPos 1 and translate it (connected mode)
4) cut the content element and paste it into BBBB, in colPos 2

Results:

the CE in default language is correctly placed; its translated counterpart disappears from page view, because it still has colPos=1 (which is invalid on the new page) and it can be "rescued" via list view.

The same problem occurs on TYPO3 9.2.0-dev, but here the problem is mitigated, because TYPO3 warns you that there are unused content elements in the page, and show them with yellow/orange titlebar.

Actions #8

Updated by Riccardo De Contardi over 4 years ago

This issue still occurs on 10.2.0-dev (latest master); the behavior is the same described on my comment 7

Actions #9

Updated by Julian Mair over 2 years ago

I can confirm this bug in Typo3 10.4.21 - is there anything we can do?

Actions

Also available in: Atom PDF