Project

General

Profile

Actions

Bug #61179

closed

Epic #58282: Workspaces Workpackage #2

Story #58284: Bug fixes & Behaviour

Flaws in copying a page with localized content elements

Added by Oliver Hader about 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Workspaces
Target version:
Start date:
2014-08-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

Scenario:
  • in Live Workspace
  • Page
  • content element for default language
  • content element localization with reference to the default record
Action:
  • in Draft Workspace
  • copy the mentioned page
Experience:
  • copy process works
  • open new inserted page on Web>List module
  • translation for the content element is not shown
Reason:
  • the translation pointer value for the new placeholder is not updated and still points to the record of the origin page

Files

source-page-from-live-ws.png (141 KB) source-page-from-live-ws.png Daniel Goerz, 2015-08-21 23:09
copy-of-page-in-ws.png (149 KB) copy-of-page-in-ws.png Daniel Goerz, 2015-08-21 23:09
CloningResultInDraftWorkspace.png (84.3 KB) CloningResultInDraftWorkspace.png Second cloning result of page (53) in draft workspace (1) Oliver Hader, 2015-08-22 11:23

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Task #68395: Make CE copy action more flexibleClosedAndreas Kienast2015-07-20

Actions
Related to TYPO3 Core - Bug #64939: Copying a translated page in Workspace duplicates the first content elementClosed2015-02-09

Actions
Related to TYPO3 Core - Bug #64941: Display of translation after copying a page in workspaceClosed2015-02-09

Actions
Actions #1

Updated by Gerrit Code Review about 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32356

Actions #2

Updated by Oliver Hader about 10 years ago

  • Description updated (diff)
Actions #3

Updated by Mathias Schreiber almost 10 years ago

  • Target version set to 7.5
Actions #4

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32356

Actions #5

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32356

Updated by Daniel Goerz over 9 years ago

Here is what I do:

In Live WS:
  1. Create a new Page
  2. Create a translation of that page
  3. Create a Content Element on that page
  4. Create a translation of that Content Element
    (See Screenshot "source-page-from-live-ws")
In WS:
  1. Copy that page
  2. Insert after that page
  3. View the new pasted page in page module
    (see Screenshot "copy-of-page-in-ws")
Issues:
  1. The tranlated Content Element was created twice
  2. The Button for translate default content is shown nevertheless
Expectation:
  1. Only one tranlated Content Element
  2. No "translate default" button
Actions #7

Updated by Oliver Hader about 9 years ago

Thanks for your analysis and documentation of your findings.

Unfortunately, I could not reproduce the duplication issue of the content records - the database view on tt_content seems to be fine as well.
The issue with the button is reproducible however, but needs to be solved differently for the viewing component in the page module (it's a misinterpretation of the record data).

mysql> select uid,pid,sys_language_uid,l18n_parent,header,t3ver_oid,t3ver_state,t3ver_wsid from tt_content order by uid DESC limit 16;
+-----+-----+------------------+-------------+----------------------------------------------------+-----------+-------------+------------+
| uid | pid | sys_language_uid | l18n_parent | header                                             | t3ver_oid | t3ver_state | t3ver_wsid |
+-----+-----+------------------+-------------+----------------------------------------------------+-----------+-------------+------------+
### second cloning result of page (53) in draft workspace (1)
| 291 |  -1 |                1 |         288 | [Translate to German:] Content                     |       290 |          -1 |          1 |
| 290 |  56 |                1 |         288 | [Translate to German:] Content                     |         0 |           1 |          1 |
| 289 |  -1 |                0 |           0 | Content                                            |       288 |          -1 |          1 |
| 288 |  56 |                0 |           0 | Content                                            |         0 |           1 |          1 |
### first cloning result of page (53) in draft workspace (1)
| 287 |  -1 |                1 |         284 | [Translate to German:] Content                     |       286 |          -1 |          1 |
| 286 |  54 |                1 |         284 | [Translate to German:] Content                     |         0 |           1 |          1 |
| 285 |  -1 |                0 |           0 | Content                                            |       284 |          -1 |          1 |
| 284 |  54 |                0 |           0 | Content                                            |         0 |           1 |          1 |
### content in default and target language (1) in live workspace
| 283 |  53 |                1 |         282 | [Translate to German:] Content                     |         0 |           0 |          0 |
| 282 |  53 |                0 |           0 | Content                                            |         0 |           0 |          0 |
Actions #8

Updated by Oliver Hader about 9 years ago

I guess that #68395 might be a relevant candidate for the button thingy...

Actions #9

Updated by Daniel Goerz about 9 years ago

Did you really apply the patch? I get your results without the patch. No matter what, with the patch I get two translated CEs. maybe someone else can test this as well.

Actions #10

Updated by Daniel Goerz about 9 years ago

OK, I did more tests. Created new PageTrees with two or more languages and wasn't able to reproduce the double creation either. however in the first PageTree I cant make the double creation disappear but I wont blame the pacth any longer and remove my -1. I will investigate further and let you know If I find a way to reproduce the double creation issue.

Actions #11

Updated by Oliver Hader about 9 years ago

  • Sprint Focus set to Stabilization Sprint
Actions #12

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #13

Updated by Gerrit Code Review about 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43906

Actions #14

Updated by Oliver Hader about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF