DB fields for title and description are VARCHAR(255) and in code we have :

  // title
  $group .= form_textfield(
    t('Title'),               // title
    'attachment_title',       // name
    $node->attachment_title,  // value
    10,   // size
    50,   // maxlength
    t('used as link-text'),
    null, // attributes
    false // required
  );
  // description
  $group .= form_textfield(
    t('Description'),               // title
    'attachment_description',       // name
    $node->attachment_description,  // value
    10,   // size
    50,   // maxlength
    t('used as title-attribute in link'),
    null, // attributes
    false // required
  );

Change maxlength to 255 to meet DB limitations.

Comments

ccourtne’s picture

Status: Needs review » Fixed

I have updated the module to do the correct thing. Thanks.

ccourtne’s picture

Status: Fixed » Closed (fixed)