プロジェクト

全般

プロフィール

Vote #66483

完了

MenuManager dies if you delete all items and then re-add

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

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

100%

予定工数:
category_id:
20
version_id:
17
issue_org_id:
4718
author_id:
1752
assigned_to_id:
5
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
16
ステータス-->[Closed]

説明

If you delete all items for :top_menu and try to push new ones back, it errors out. An easy workaround is to delete one and push its replacement. The error output is attached.


journals

Robert brought this to my attention on IRC. A workaround is to make sure a menu always has at least one item in it.
--------------------------------------------------------------------------------
It turned out that the counters used to keep track of the @:last@ menu items weren't decremented when an item was removed. This caused the menu to try to position the new menu item at a negative position.

Thanks for the bug report, I'm happy this was found. Fixed in r3447.
--------------------------------------------------------------------------------
Merged in 0.9-stable in r3461.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン0.9.3_17 にセット

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

いいね!0
いいね!0