Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widgets with just relationship fields do not work work #4341

Open
dainissilamikelis1nce opened this issue Nov 14, 2023 · 2 comments
Open

widgets with just relationship fields do not work work #4341

dainissilamikelis1nce opened this issue Nov 14, 2023 · 2 comments
Labels

Comments

@dainissilamikelis1nce
Copy link

apos version 3.44

To Reproduce

Step by step instructions to reproduce the behavior:

  1. Create a piece
  2. Create widget

Expected behavior

Promotion should be choosable in the field

Describe the bug

Promotion is not choosable in the field

Details

If I add 1 more field it works as-expected
(see screenshots)

promotions and _promotions where tested, both do not worked as expected

module.exports = {
  extend: '@apostrophecms/widget-type',
  options: {
    label: 'Promotion Widget with piece',
    alias: 'promotion-with-piece',
    previewImage: 'png',
  },
  fields: {
    add: {
      _promotion: {
        type: 'relationship',
        label: 'Promotion',
        withType: 'promotion',
        max: 1,
      },
    },


  },
};

Version of Node.js:
checked on v20.3.1
checked on v18.14.0

Server Operating System:
Macos Sonoma 14.1 (23B74)

Screenshots

without extra field - cant select promotion
Screenshot 2023-11-14 at 12 00 01

with extra field - can select promotion
Screenshot 2023-11-14 at 12 01 23

@BoDonkey
Copy link
Contributor

Thanks for raising this issue, but I could not reproduce this with a fresh project using Apostrophe 3.44.0 or the most current 3.59.0. Please try bringing the project up after removing the apos-build and data folders to see if the problem persists.

@boutell
Copy link
Member

boutell commented Nov 14, 2023

If the problem does persist please provide a sample project so we can verify it. Thanks Dainis!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants