Verified Commit f75c4ad0 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3432746 by rwanth: Taxonomy revision UI is missing log messages

parent ec28f25d
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -210,12 +210,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
      ->setTranslatable(TRUE)
      ->setRevisionable(TRUE);

    // @todo Keep this field hidden until we have a revision UI for terms.
    // @see https://www.drupal.org/project/drupal/issues/2936995
    $fields['revision_log_message']->setDisplayOptions('form', [
      'region' => 'hidden',
    ]);

    return $fields;
  }

+2 −3
Original line number Diff line number Diff line
@@ -190,10 +190,9 @@ public function testTaxonomyTermPendingRevisions(): void {
    $assert_session->pageTextContains($default_term_name);
    $assert_session->pageTextContains($default_term_description);

    // Check the revision log message field does not appear on the term edit
    // page.
    // Check the revision log message field appears on the term edit page.
    $this->drupalGet($term->toUrl('edit-form'));
    $assert_session->fieldNotExists('revision_log_message[0][value]');
    $assert_session->fieldExists('revision_log_message[0][value]');

    $pending_term_name = 'term - pending revision';
    $pending_term_description = 'The pending revision of a term.';