Skip to content

Commit

Permalink
tests-bustage fix for bug 981689 (the code relies on the current-vers…
Browse files Browse the repository at this point in the history
…ion preference being always set, which isn't true for testing-prefs-branches)
  • Loading branch information
Asaf Romano committed May 6, 2014
1 parent 64ea68b commit ec55f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/datareporting/policy.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ this.DataReportingPolicy.prototype = Object.freeze({
set dataSubmissionPolicyAccepted(value) {
this._prefs.set("dataSubmissionPolicyAccepted", !!value);
if (!!value) {
let currentPolicyVersion = this._prefs.get("currentPolicyVersion");
let currentPolicyVersion = this._prefs.get("currentPolicyVersion", 1);
this._prefs.set("dataSubmissionPolicyAcceptedVersion", currentPolicyVersion);
} else {
this._prefs.reset("dataSubmissionPolicyAcceptedVersion");
Expand Down

0 comments on commit ec55f26

Please sign in to comment.