[PR #5787] [MERGED] fix(script): correct hardcoded menu option numbers in x-ui.sh #5986

Closed
opened 2026-11-02 04:05:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5787
Author: @lxk955
Created: 7/4/2026
Status: ✅ Merged
Merged: 7/4/2026
Merged by: @MHSanaei

Base: main ← Head: fix/menu-option-numbers


📝 Commits (2)

  • 22ea9ed fix(script): correct hardcoded menu option numbers in x-ui.sh
  • 4230683 Update x-ui.sh

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 x-ui.sh (+3 -3)

📄 Description

Summary

Fixed the incorrect option numbers in the prompt message.
The error messages referenced option 19 for SSL Certificate Management and option 16 for Logs Management, but the actual positions in show_menu are 20 and 17 respectively.

Why

Fixed the incorrect option numbers in the prompt message.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

Manually verified: confirmed the main menu in show_menu() shows SSL Certificate Management at position 20 and Logs Management at
position 17, matching the updated messages. No automated tests cover the shell script.

Screenshots / recordings

N/A

Breaking changes

None.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 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/MHSanaei/3x-ui/pull/5787 **Author:** [@lxk955](https://github.com/lxk955) **Created:** 7/4/2026 **Status:** ✅ Merged **Merged:** 7/4/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/menu-option-numbers` --- ### 📝 Commits (2) - [`22ea9ed`](https://github.com/MHSanaei/3x-ui/commit/22ea9eda42527b712c0f8a93f70194759b5139a9) fix(script): correct hardcoded menu option numbers in x-ui.sh - [`4230683`](https://github.com/MHSanaei/3x-ui/commit/42306830b52fa4cbe739e4759c5b9caecd476af6) Update x-ui.sh ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `x-ui.sh` (+3 -3) </details> ### 📄 Description ## Summary Fixed the incorrect option numbers in the prompt message. The error messages referenced option 19 for SSL Certificate Management and option 16 for Logs Management, but the actual positions in show_menu are 20 and 17 respectively. ## Why Fixed the incorrect option numbers in the prompt message. ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [ ] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [x] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? Manually verified: confirmed the main menu in show_menu() shows SSL Certificate Management at position 20 and Logs Management at position 17, matching the updated messages. No automated tests cover the shell script. ## Screenshots / recordings N/A ## Breaking changes None. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:05:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5986
No description provided.