Skip to content

Commit

Permalink
FIX #338 (first step): TRACKLIST_TOOLS: “Set selected works’ recordin…
Browse files Browse the repository at this point in the history
…g dates” broken

Server change regression fixed
  • Loading branch information
jesus2099 committed Dec 22, 2017
1 parent a3bfc8c commit b12318c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mb_SUPER-MIND-CONTROL-II-X-TURBO.user.js
Expand Up @@ -1192,12 +1192,12 @@ if (enttype) {
MB.relationshipEditor.UI.checkedWorks().forEach(function(work) {
work.relationships().forEach(function(relationship) {
if (relationship.entityTypes == "recording-work") {
relationship.period.beginDate.year(date[2]);
relationship.period.beginDate.month(date[3]);
relationship.period.beginDate.day(date[4]);
relationship.period.endDate.year(date[5] ? date[6] : date[2]);
relationship.period.endDate.month(date[5] ? date[7] : date[3]);
relationship.period.endDate.day(date[5] ? date[8] : date[4]);
relationship.begin_date.year(date[2]);
relationship.begin_date.month(date[3]);
relationship.begin_date.day(date[4]);
relationship.end_date.year(date[5] ? date[6] : date[2]);
relationship.end_date.month(date[5] ? date[7] : date[3]);
relationship.end_date.day(date[5] ? date[8] : date[4]);
}
});
});
Expand Down

0 comments on commit b12318c

Please sign in to comment.