返回首頁 

Discussions»Greasy Fork Feedback

Adding localized additional info is broken

Posté le: 09/02/2025

When I go to the Admin tab of my script and click the "Add a localized, synced additional info" button, the elements are always added with index 0: "additional_info_sync[0][sync_identifier]", "additional_info_sync[0][value_markup]" etc. This breaks radio buttons and makes adding additional infos impossible.

The same thing happens when pressing "Add a localized additional info" on the Update tab.

I can't reproduce the bug; both places work for me. What browser are you using?

Posté le: 12/02/2025

The issue is caused by switching locales. The generated URL becomes "https://greasyfork.org/en/scripts/sync_additional_info_form?locale_override=1?index=1".

- xhr.open("get", button.getAttribute("data-form-path") + "?index=" + index);+ const appendSearchChar = button.dataset.formPath.includes("?") ? "&" : "?";+ xhr.open("get", `${button.dataset.formPath}${appendSearchChar}index=${index}`);

Fixed now.

Poster une réponse

Connectez-vous pour poster une réponse.