プロジェクト

全般

プロフィール

Vote #63271

完了

Adding non-ASCII new issue type in the New Issue page have encoding error using IE

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2008/05/22
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
4
issue_org_id:
1286
author_id:
460
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I have test firefox3, IE6 and IE7.
In the new issue page, adding ASCII new issue type is correct using all of the three browser.

But when add non-ASCII new issue type, only firefox works fine. IE6 will add mess-up characters to issue types and IE7 will fail to add the new type.

I have resolved this problem by add encodeURIComponent in the promptToRemote function in application.js.
And now both ASCII and non-ASCII new issue type can be added successfully.

Index: application.js
--- application.js Base (BASE)
+++ application.js Locally Modified (Based On LOCAL)
@@ -56,7 +56,7 @@
 function promptToRemote(text, param, url) {
     value = prompt(text + ':');
     if (value) {
-        new Ajax.Request(url + '?' + param + '=' + value, {asynchronous:true, evalScripts:true});
+        new Ajax.Request(url + '?' + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true});
         return false;
     }
 }

journals

Fixed in r1442. Thanks for the patch.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン0.7.2_4 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0