Added the droping of the tags in the predelete to prevent some integrity issues.

This commit is contained in:
Loic d'Anterroches 2010-05-21 11:28:48 +02:00
parent 598451f470
commit 982b330739

View File

@ -629,7 +629,7 @@ class IDF_Project extends Pluf_Model
Pluf_Signal::send('IDF_Project::preDelete',
'IDF_Project', $params);
$what = array('IDF_Upload', 'IDF_Review', 'IDF_Issue',
'IDF_WikiPage', 'IDF_Commit',
'IDF_WikiPage', 'IDF_Commit', 'IDF_Tag',
);
foreach ($what as $m) {
foreach (Pluf::factory($m)->getList(array('filter' => 'project='.(int)$this->id)) as $item) {