Skip to content

Commit

Permalink
XmlImportExport: Fix import error "Column 'profile_id' cannot be null"
Browse files Browse the repository at this point in the history
In bug_api.php BugData class, the profile_id member variable defaults to
null but the DB bug table does not allow null values, causing the error.

Defaulting the variable to 0 resolves the problem.

Fixes #12112
  • Loading branch information
dregad committed Sep 18, 2012
1 parent 7a6ee16 commit cb82535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bug_api.php
Expand Up @@ -100,7 +100,7 @@ class BugData {

# omitted:
# var $bug_text_id
protected $profile_id;
protected $profile_id = 0;

# extended info
protected $description = '';
Expand Down

0 comments on commit cb82535

Please sign in to comment.