Problem/Motivation

The UI is inconsistent when editing a translated node with paragraph. Even though the user cannot drag and drop the existing paragraphs, the table field with weights shows up, giving the false impression that the order can be changed.

If the user changes the order, then the usual error message stating that some properties can be changed only on the original language is shown.

Steps to reproduce

1. create a content type with a paragraph field, choose the STABLE widget
2. add paragraphs to the original node
3. add a translation, see that the weight numbers show up in the table

error shown

Weight fields showing

Proposed resolution

Hide the table column altogether in this case.

Remaining tasks

I have added a patch.

However, I wonder if this fix can only be applied to drupal 10.2?

Comments

vermario created an issue. See original summary.

vermario’s picture

Issue summary: View changes
StatusFileSize
new61.13 KB
new4.34 KB
vermario’s picture

StatusFileSize
new1.14 KB

It seems that with drupal 10.2 the indexes of the table (both header and rows) are off by one. So this patch restores the previous functionality.

vermario’s picture

Status: Active » Needs review
vermario’s picture

Issue summary: View changes
tobiasb’s picture

mathilde_dumond’s picture

This patch worked for us (on 10.2)

berdir’s picture

Status: Needs review » Closed (duplicate)

Patch is almost identical as #3454273: Order select shows on a translation of a paragraphs field on 10.2+ but that has one more change that this one is missing and it's a merge request, so merged that with added credits.