Problem/Motivation

By default Drupal fields are 255 characters long. But the replicate module "New label" field is created with the form API as a textfield so it has a maxlength of 128 characters, which is also the default. So duplicating for example a node with a title of more than 128 characters will fail since it will fail the form API maxlength character validation.

Steps to reproduce

Create node with title more than 128 characters long and try to replicate it.

Proposed resolution

Adjust /src/Form/ReplicateConfirmForm.php textfields to have 255 characters maxlength by default to match the Drupal field API.

Comments

casaran created an issue. See original summary.

casaran’s picture

Status: Active » Closed (duplicate)