Published checkbox is not in top sticky bar for commerce_product forms

Created on 4 July 2024, 11 months ago

Problem/Motivation

When adding commerce_product forms to a custom modules implementation of hook_gin_content_form_routes()
The product forms are shown with the content form layout, however the 'published' checkbox is not moved to the top sticky bar like it is for other content forms.

Steps to reproduce

Code I'm using:

function MYMODULE_gin_content_form_routes() {
  return [
    'entity.commerce_product.edit_form',
    'entity.commerce_product.add_form',
  ];
}

See screen shot for what is shown.

πŸ› Bug report
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States loze Los Angeles

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

Comments & Activities

  • Issue created by @loze
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich
  • πŸ‡¨πŸ‡­Switzerland corwino

    We encountered the same issue, the following patch restores the status checkbox to the top sticky bar. Couldn't determine any undesired side effects.

  • πŸ‡©πŸ‡ͺGermany harkonn

    We also encountered the same behaviour but the patch from #3 did not help. Maybe our "fix" helps others too:

    We used $form['#tree'] = TRUE; in a hook_form_alter. After refactoring this hook to not use $form['#tree'] = TRUE; anymore the publish-field went into the gin-sticky-form-actions again.

Production build 0.71.5 2024