Project

General

Profile

Bug(バグ) #238

コメント付の日記を削除できない

Added by Kiwa Sakai almost 13 years ago. Updated almost 13 years ago.

Status:
Fixed(完了)
Priority:
High(高め)
Assignee:
Target version:
Start date:
2009-11-16
Due date:
% Done:

100%

3.6 で発生するか:
Unknown (未調査)
[QA]バグ通知済:
No
3.8 で発生するか:
Unknown (未調査)

Description

コメント付の日記を削除をしようとすると、500エラーになる。

  • 該当画面: /pc_frontend_dev.php/diary/delete/xxx
  • エラー内容
    500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
    SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`xxxxxx/diary_comment`, CONSTRAINT `diary_comment_diary_id_diary_id` FOREIGN KEY (`diary_id`) REFERENCES `diary` (`id`))
    

Associated revisions

Revision aef98995 (diff)
Added by Rimpei Ogawa almost 13 years ago

fixed a bug for deleting commented diaries (fixes #238)

fixed foreign key on `diary_comment` table for cascade delete

History

#1 Updated by Kiwa Sakai almost 13 years ago

  • Target version deleted (v0.9.1.2)

#2 Updated by Kiwa Sakai almost 13 years ago

発生バージョンは 0.9.1.2 です。

#3 Updated by Rimpei Ogawa almost 13 years ago

  • Status changed from New(新規) to Accepted(着手)
  • Priority changed from Normal(通常) to High(高め)
  • Target version set to v0.9.2

#4 Updated by Rimpei Ogawa almost 13 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴commit:"aef98995a82ea2239d11e9c5fdb6ba4d12057ea5"で適用されました。

#5 Updated by Rimpei Ogawa almost 13 years ago

  • Status changed from Pending Review(レビュー待ち) to Fixed(完了)

#6 Updated by Rimpei Ogawa almost 13 years ago

  • % Done changed from 50 to 100

Also available in: Atom PDF