Skip to content

Commit

Permalink
Build release 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanhelvoort committed Aug 28, 2018
2 parents c4ec89f + 9ae8e46 commit c3b533d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
angular.forEach($scope.model.question.answers, function (val, index) {
val.index = index;
});

});
}
};
Expand All @@ -25,7 +24,7 @@
pickTime: false,
useSeconds: false,
useMinutes: false,
format: "YYYY-MM-DD HH:mm:ss",
format: "YYYY-MM-DD",
icons: {
time: "icon-time",
date: "icon-calendar",
Expand Down Expand Up @@ -78,7 +77,11 @@
event.preventDefault();

$scope.model.question.answers = _.reject($scope.model.question.answers, function (x) {
return x.id === answer.id;
return x.index === answer.index;
});

angular.forEach($scope.model.question.answers, function (val, index) {
val.index = index;
});
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public HttpResponseMessage Post(Question question)
var oldAnswers = QuestionRepository.Current.GetAnswers(question.Id).Where(a => !question.Answers.Any(r => r.Id.Equals(a.Id)));
foreach (var deletedAnswer in oldAnswers)
{
if (!ResponseRepository.Current.DeleteByAnswerId(deletedAnswer.Id) && !AnswerRepository.Current.Delete(deletedAnswer.Id))
if (!ResponseRepository.Current.DeleteByAnswerId(deletedAnswer.Id) || !AnswerRepository.Current.Delete(deletedAnswer.Id))
{
return this.Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "Can't delete old answers, Error add of update of the quesion");
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Qvision.Umbraco.PollIt/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.0.*")]
[assembly: AssemblyFileVersion("0.9.0.*")]
[assembly: AssemblyVersion("0.9.1.*")]
[assembly: AssemblyFileVersion("0.9.1.*")]
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
os: Visual Studio 2015

# Version format
version: 0.9.0.{build}
version: 0.9.1.{build}

cache:
- Source\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
Expand Down

0 comments on commit c3b533d

Please sign in to comment.