Redmine ã§ããããã±ããã®åãã±ããã§æ¥ã«æ´æ°ãã§ããªããªãã¾ããã次ã®ãããªã¨ã©ã¼ãã§ã¾ãã
Parent task translation missing: ja, activerecord, errors, models, issue, attributes, parent_issue_id, not_a_valid_parent
ã¨ã©ã¼ã ãä½ã ãè¯ãããããªãã¡ãã»ã¼ã¸ã§ãããããã¯ç¿»è¨³ãã¡ã¤ã«ã«ã¨ã³ããªããªããããã¨ã©ã¼ã³ã¼ãããã®ã¾ã¾åºã¦ããããã§ãã
親åé¢ä¿ãããããã®ãã¨æã£ã¦ãã±ããã®è¦ªãæ¶ããã¨ãã¦ãã¨ã©ã¼ã«ãªã£ã¦ãã¾ã£ããã親ãã±ããã«æ°ããªåãã±ãããä½æããã¨ãæ¢åã®åãã±ãããæ°ããªãã±ããã®åä¾ã«ãªã£ã¦ãã¾ã£ããã
ã©ããã http://www.redmine.org/issues/6143 ã®ãã°ã«è©²å½ãã¦ãã¾ã£ãããã§ãã
ãã®ç¶æ ãã復æ§ããã«ã¯ãã¼ã¿ãã¼ã¹ãç´æ¥ããããªãã¨ããã¾ããã§ããã
該å½ã®ãã±ããã®ç¶æ ã確èªãã¾ãã
mysql> select id,parent_id,root_id,lft,rgt from issues where id=XXXXX; (XXXXX ã¯ãã±ããID)
parent_id, root_id ã«ç´æ¥ã®è¦ªãã±ããã¨æä¸ä½ã®è¦ªãã±ããã®IDãå
¥ã£ã¦ãã¦ãlft, rgt ã«è¬ã®æ°åãå
¥ã£ã¦ããã®ã確èªã§ãã¾ãã
Redmine ã®ããã°ã©ã ãè¦ãã«ããã® lft, rgt ã親ãã±ããã® lft, rgt ã®ç¯å²å
ã«å
¥ã£ã¦ããªãã¨ã¨ã©ã¼ã«ãªã£ã¦ãã¾ãããã§ã(vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb ã® move_possible?())ã
ãããã®å¤ã®æ´åæ§ãåãã¦ãªãããã«æä½ã§ããªãã£ãã®ã§ããã
復æ§ããã«ã¯æ¬¡ã®ããã«ãã¦ä¸æ¦è¦ªåé¢ä¿ã解é¤ãã¾ãã
mysql> update issues set parent_id=null,root_id=XXXXX,lft=1,rgt=2 where id=XXXXX; (XXXXX ã¯ãã±ããID)
ãã®å¾ã¯ã¡ããã¨æ´æ°ã§ããããã«ãªã£ã¦ããã®ã§ããã©ã¦ã¶ããæ´æ°ãã¦è¦ªãã±ãããæå®ããã¨ã¡ããã¨åãã±ããã¨ãã¦æ´åæ§ãåããç¶æ ã«ãªãã¾ããã
ã¨ãããã¨ã§ãããã¾ãçºçãã¦ãã¾ã£ãæã®ããã®ã¡ã¢ã§ããã