Skip to content

Taxonomy are looking for the incorrect model class #142

Closed

Description

@kaidesu

Describe the issue

When a taxonomy is assigned through a fieldset or referenced from the frontend, an error is thrown.

To reproduce

  1. Create a taxonomy called Categories
  2. Create a fieldset with a taxonomy fieldtype with the name Test pointing to the created taxonomy
  3. Create a matrix and assign fieldset
  4. Create a new entry and create/assign a new taxonomy
  5. Attempt to save entry

A 500 error will be thrown on the POST/PATCH request:

message: "Class 'App\Models\Taxonomies\Test' not found"
exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "/home/vagrant/Code/website/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php"
line: 718

☝️ notice that what it's looking for is the name of the field rather than referencing the associated taxonomy.

Version and browser

Version: v6.0.0 beta 0

Bug report checklist

  • I have filled out as much information as I can
  • I have detailed how the issue can be reproduced
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions