JS error when "Unpublishing" option is disabled

Created on 31 July 2024, 4 months ago
Updated 10 August 2024, 3 months ago

Problem/Motivation

If your content type has disabled the "Unpublishing"/"Publishing" scheduler option then I get an Javascript error using Gin. Probably because it provides vertical tabs.

TypeError: Cannot read properties of null (reading 'value')

https://git.drupalcode.org/project/scheduler/-/blob/2.x/js/scheduler_ver...

Steps to reproduce

  1. Set Gin as admin theme.
  2. Enable either publish or unpublish. Keep other one disabled.
  3. Add content
  4. Check Console

Proposed resolution

There should be check if the publishing/unpublishing element exists, before trying to read out the value.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇩🇪Germany szeidler Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024