mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
There is a bug when multiple message edit forms are opened at the same time where undefined value of stream_id is sent to the server. This happens because a global variable stream_widget is used to get the id of stream selected in dropdown and value of stream_widget variable keeps on changing when we open multiple message edit forms. Thus, stream_widget can have the dropdown widget of already closed edit form resulting in undefined value of stream id. This commit changes the save_message_row_edit function to access the dropdown element directly using message id instead of using stream_widget.value() and thus we always use the correct dropdown element to get the stream id. We also move the stream_widget variable to be inside edit_message function instead of being global variable for the module. Fixes #19663.
40 KiB
40 KiB