Skip to content

Commit

Permalink
fix: Force Flarum tag names to not be null.
Browse files Browse the repository at this point in the history
See bug report: #45 (comment)
"FLA_tags name cannot be null"
  • Loading branch information
linc committed Mar 3, 2024
1 parent ac3ec6a commit db5d542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Target/Flarum.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ protected function categories(ExportModel $ex): void
$query = $ex->dbImport()->table('PORT_Category')
->select(
'*',
$ex->dbImport()->raw('COALESCE(Name, CONCAT("category", id)) as name'), // Cannot be null.
$ex->dbImport()->raw("if(ParentCategoryID = -1, null, ParentCategoryID) as ParentCategoryID"),
$ex->dbImport()->raw("0 as is_hidden"),
$ex->dbImport()->raw("0 as is_restricted")
Expand Down

0 comments on commit db5d542

Please sign in to comment.