verbb / navigation

A Craft CMS plugin to create navigation menus for your site.
Other
90 stars 23 forks source link

Pass a navigation node from "passive" to "entries" #336

Closed philippe-leeroy closed 1 year ago

philippe-leeroy commented 1 year ago

Describe the bug

When I try to pass a navigation node from "passive" to "entries" (or categories/assets etc.)

Craft CMS returns "Couldn't save draft". If I try to save anyway because I'm stubborn, it returns "Couldn't save node".

And in the console, on the "network" tab preview, I have that :

{
    "elementId": [
        "Element ID is required."
    ],
    "linkedElementId": [
        "Linked Element ID is required."
    ]
}

So I checked in the database and apparently I have no elementId on my node in the navigation_nodes table.

image

Steps to reproduce

  1. Use a old navigation node that is set to "passive", click on the edit button
  2. Try to switch it to "Entries"
  3. Get a toast that says "Couldn't save draft"
  4. Try to save anyway, another toast "Coudn't save node"

Craft CMS version

4.3.5

Plugin version

2.0.14

Multi-site?

Yes

Additional context

No response

engram-design commented 1 year ago

Fixed in 2.0.15