From 5343e5b2cf53a61a8a6c88d429ccb4f5cd43d14e Mon Sep 17 00:00:00 2001 From: Alexander Kalinovsky Date: Sat, 26 Apr 2025 17:12:48 +0700 Subject: [PATCH] fix bug in entity_data dict --- src/quickbot/bot/handlers/editors/main_callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quickbot/bot/handlers/editors/main_callbacks.py b/src/quickbot/bot/handlers/editors/main_callbacks.py index c513e03..286fe87 100644 --- a/src/quickbot/bot/handlers/editors/main_callbacks.py +++ b/src/quickbot/bot/handlers/editors/main_callbacks.py @@ -198,7 +198,7 @@ async def process_field_edit_callback(message: Message | CallbackQuery, **kwargs entity_descriptor = get_entity_descriptor(app, callback_data) entity_data = state_data.get("entity_data", {}) - entity_data[field_descriptor.field_name] = value + entity_data[field_descriptor.name] = value if callback_data.context == CommandContext.COMMAND_FORM: field_sequence = list(field_descriptor.command.param_form.keys())