fix(order-form): перевести lexicon labels в dropdown заказа#194
Merged
biz87 merged 1 commit intomodx-pro:betafrom Apr 12, 2026
Merged
Conversation
Order form combo options only loaded the vue lexicon topic, so payment, delivery, and status values stored as lexicon keys were returned to the UI without translation. Load the required lexicon topics before resolving comboOptions and keep the order-form dropdown routes aligned.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Описание
Исправляет баг, из-за которого в manager-форме заказа в dropdown/select полях отображались raw lexicon keys (
ms3_payment_cash,ms3_delivery_self_pickup,ms3_order_status_new) вместо переведённых подписей.Причина была в том, что
GET /api/mgr/model-fields/visible/msOrderзагружал толькоminishop3:vue, аcomboOptionsдляstatus_id,delivery_idиpayment_idпереводятся через lexicon topicsminishop3:managerиminishop3:default. Дополнительно приведены в соответствие order-form routes для dropdown статусов и активных доставок.Тип изменений
Связанные Issues
Fixes #193
Как это было протестировано?
Опишите тесты, которые вы провели для проверки изменений.
Конфигурация тестирования:
beta3.x8.2+локальный CLI /php -lПроверка через bootstrap MODX и вызов модифицированного
ModelFieldsController::getVisibleFields(['model' => 'msOrder'])показала корректные labels вcomboOptions:status_id:Черновик,Новый,Оплаченdelivery_id:Самовывоз,Почта России,ПЭКpayment_id:НаличныеСкриншоты (если применимо)
Чеклист
Дополнительные заметки
Фикс намеренно ограничен order-form API путями и не меняет CRUD-контроллеры оплат/доставок, чтобы не подменять raw stored lexicon keys в экранах их редактирования.