Make the project field in the tags table nullable so it is (hopefully)
optional on setups with enabled foreign key constraints.
This commit is contained in:
@@ -53,7 +53,7 @@ class IDF_Forge
|
||||
}
|
||||
|
||||
public function getProjectLabelsWithCounts() {
|
||||
$sql = new Pluf_SQL('project=0');
|
||||
$sql = new Pluf_SQL('project IS NULL');
|
||||
$tagList = Pluf::factory('IDF_Tag')->getList(array(
|
||||
'filter' => $sql->gen(),
|
||||
'view' => 'join_projects',
|
||||
@@ -92,4 +92,4 @@ class IDF_Forge
|
||||
public function setCustomForgePageContent($content) {
|
||||
$this->conf->setVal('custom_forge_page_content', $content);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user