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

Editing an entry with a BelongsTo field causes an error. #600

Closed
BobWez98 opened this issue Sep 17, 2024 · 0 comments · Fixed by #601
Closed

Editing an entry with a BelongsTo field causes an error. #600

BobWez98 opened this issue Sep 17, 2024 · 0 comments · Fixed by #601
Labels

Comments

@BobWez98
Copy link
Contributor

Description

References:
Runway resource brand
Brand content collection

I have a collection "Brand content" and a Runway resources "Brands". Brand content has a BelongsTo field to the Brands Runway resource. This field is called linked_brand. linked_brand is automaticly linked to a brand via a command. It is set in the database. However the field causes this error in the backend:

Scherm­afbeelding 2024-09-17 om 13 43 36

When I add return 'unlink' here the page does show as follows:
Scherm­afbeelding 2024-09-17 om 13 45 03

Steps to reproduce

  1. Add runway resource
  2. Add collection with a runway BelongsTo field
  3. Set the value of this field in the database/file
  4. Edit the entry in the CP

Environment

Environment
Application Name:
Laravel Version: 11.23.5
PHP Version: 8.2.23
Composer Version: 2.7.1
Environment: local
Debug Mode: ENABLED
URL:
Maintenance Mode: OFF
Timezone: Europe/Amsterdam
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Sentry
Enabled: MISSING DSN
Environment: local
Laravel SDK Version: 4.8.0
PHP SDK Version: 4.9.0
Release: 939b1c7f
Sample Rate Errors: 100%
Sample Rate Performance Monitoring: 0%
Sample Rate Profiling: NOT SET
Send Default PII: DISABLED

Statamic
Addons: 10
Sites: 10
Stache Watcher: Enabled
Static Caching: full
Version: 5.25.0 PRO

Statamic Addons
alt-design/alt-redirect: dev-main
eminos/statamic-iconify: 0.0.1
eminos/statamic-tabs: 1.2.0
just-better/statamic-authentik: 1.0.7
justbetter/statamic-eloquent-driver-globalset-migration-generator: 0.1.0
justbetter/statamic-image-optimize: 3.1.0
ryanmitchell/statamic-translation-manager: 1.6.0
spatie/statamic-responsive-images: 5.0.1
statamic-rad-pack/runway: 7.9.2
statamic/eloquent-driver: 4.14.3

Statamic Eloquent Driver
Asset Containers: file
Assets: eloquent
Blueprints: file
Collection Trees: file
Collections: file
Entries: eloquent
Forms: file
Global Sets: file
Global Variables: eloquent
Navigation Trees: eloquent
Navigations: file
Revisions: eloquent
Sites: file
Taxonomies: file
Terms: eloquent
Tokens: file

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

Successfully merging a pull request may close this issue.

1 participant