[PR #845] [MERGED] fix: create database fails with 500 #1003

Closed
opened 2026-02-04 19:09:44 +03:00 by OVERLORD · 0 comments
Owner

📋 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: mainHead: 805-edit-server-create-database-fails-with-500


📝 Commits (1)

  • e2472f6 fix: 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:

  • Changed relationship to options.

Closes #805


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/845 **Author:** [@alexevladgabriel](https://github.com/alexevladgabriel) **Created:** 12/27/2024 **Status:** ✅ Merged **Merged:** 12/28/2024 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `805-edit-server-create-database-fails-with-500` --- ### 📝 Commits (1) - [`e2472f6`](https://github.com/pelican-dev/panel/commit/e2472f6c82981ba40345206b145c391f484df46f) fix: use options instead relationship ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Admin/Resources/ServerResource/Pages/EditServer.php` (+4 -2) </details> ### 📄 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: - Changed `relationship` to `options`. Closes #805 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 19:09:44 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1003