mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6053] [MERGED] fix(clients): persist all editable fields for clients with no inbound #6067
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6067
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/MHSanaei/3x-ui/pull/6053
Author: @H-TTTTT
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @MHSanaei
Base:
main← Head:fix/client-fields-no-inbound📝 Commits (1)
49687e2fix(clients): persist all editable fields for clients with no inbound📊 Changes
3 files changed (+294 additions, -47 deletions)
View changed files
📝
internal/web/service/client_crud.go(+29 -0)📝
internal/web/service/client_link.go(+60 -47)➕
internal/web/service/client_update_no_inbound_test.go(+205 -0)📄 Description
Summary
ClientService.Updateonly wrote most editable client fields to theclientstable inside the per-inbound loop (UpdateInboundClient→SyncInbound). A client with no attached inbound (the external-links / remote-subscription client) therefore silently droppedsubId,totalGB,expiryTime,limitIp,tgId,comment,reset,flow,security, and the credential fields on edit.Updatestill returned success, so the panel showed a saved toast while the row was untouched — matching the report exactly (stalesubIdafter refresh, no error).email/enable/group_name/ad_tag/reversealready had dedicated unconditional direct writes that covered the no-inbound case; the rest did not. This was a known failure shape:c4448f4e(closing #5870) added the no-inbound fallback for email only, and `TestUpdate_PersistsRecordEnable_NoInbound` covered enable only — both stayed scoped to a single field.Changes
Verification
Fixes #5981
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.