mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 11:20:41 +03:00
[PR #845] [MERGED] fix: create database fails with 500 #1003
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/845
Author: @alexevladgabriel
Created: 12/27/2024
Status: ✅ Merged
Merged: 12/28/2024
Merged by: @notAreYouScared
Base:
main← Head:805-edit-server-create-database-fails-with-500📝 Commits (1)
e2472f6fix: use options instead relationship📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
app/Filament/Admin/Resources/ServerResource/Pages/EditServer.php(+4 -2)📄 Description
The
relationship()method assumes that the form field is working with belongsToMany or hasManyThrough relationships. In this case, it seems to be interacting with a pivot table (database_host_node), which is causing it to attempt inserting a new record into the pivot table whenever the form submits.Changelogs:
relationshiptooptions.Closes #805
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.