Problem/Motivation

While editing tmgmt translations jobs via admin/tmgmt/jobs/xx i get the following error.

Notice: Undefined index: weight in Drupal\tmgmt_content\Plugin\tmgmt\Source\ContentEntitySource->Drupal\tmgmt_content\Plugin\tmgmt\Source\{closure}() (line 192 of modules/contrib/tmgmt/sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php).
Drupal\tmgmt_content\Plugin\tmgmt\Source\ContentEntitySource->Drupal\tmgmt_content\Plugin\tmgmt\Source\{closure}('metatag', 'field_paragraphs')

In case of hte fields mentioned in the notice, the weight is not available.

Proposed resolution

Check for existing array key weight and fix the PHP notice.

Issue fork tmgmt-3223953

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SteffenR created an issue. See original summary.

steffenr’s picture

Assigned: steffenr » Unassigned

Berdir made their first commit to this issue’s fork.

  • Berdir committed 163c81f on 8.x-1.x authored by SteffenR
    Issue #3223953 by SteffenR: Notice: Undefined index: weight in Drupal\...
berdir’s picture

Make sense, merged.

berdir’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.