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

elements_sites table show entries as enabled when they should be disabled #84

Open
ThomasDeMarez opened this issue Sep 14, 2023 · 0 comments
Labels

Comments

@ThomasDeMarez
Copy link

Description

After creating a Guest Entry the elements_sites table show enabled as true while the Entry in the CMS is disabled. Even when the Plugin settings have the default status set to disabled.

Steps to reproduce

  1. Setup Guest Entries
  2. Set default status to disabled for a section
  3. Create a frontend form
  4. Submit an Entry
  5. Verify the elements_sites table has the field enabled set to 1 instead of 0
  6. The Entry has a disabled view in the CMS
  7. Craft::$app->getElements()->getEnabledSiteIdsForElement returns all sites enabled for the Entry, which is consistent with what is in the elements_sites table. But should return an empty array if the Plugin setting is to be respected.

Additional info

  • Craft version: 4.5.3
  • PHP version: 8.1.23
  • Database driver & version: MySQL 8.0.27
  • Plugins & versions: craftcms/guest-entries:3.0.1
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

1 participant