From e6a15c295fe775d96d01fc79cfa709b9440cd3d8 Mon Sep 17 00:00:00 2001 From: Evgeniia Rassokhina Date: Fri, 17 Jun 2022 14:45:07 +0300 Subject: [PATCH] Fixed an issue with date range format to create a new playlist --- CHANGELOG.md | 6 ++++++ assets/app/app/audiodata/recordings/recordings.js | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe259cc9b..45a058ef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Arbimon Release Notes +## v3.0.55 - June XX, 2022 + +Resolved issues: + +- Fixed an issue with date range format to create a new playlist + ## v3.0.54 - May XX, 2022 Resolved issues: diff --git a/assets/app/app/audiodata/recordings/recordings.js b/assets/app/app/audiodata/recordings/recordings.js index b770ac4a8..d8205e492 100644 --- a/assets/app/app/audiodata/recordings/recordings.js +++ b/assets/app/app/audiodata/recordings/recordings.js @@ -85,7 +85,7 @@ angular.module('a2.audiodata.recordings', [ this.searchRecs(['count', 'list']); }; this.createPlaylist = function(filters) { - var listParams = filters; + var listParams = angular.merge({}, filters); if(!Object.keys(listParams).length) return; @@ -108,6 +108,11 @@ angular.module('a2.audiodata.recordings', [ listParams.presence = listParams.presence[0] } + if (listParams.range) { + listParams.range.from = moment(listParams.range.from).format('YYYY-MM-DD') + 'T00:00:00.000Z'; + listParams.range.to = moment(listParams.range.to).format('YYYY-MM-DD') + 'T23:59:59.999Z'; + } + var modalInstance = $modal.open({ controller: 'SavePlaylistModalInstanceCtrl', templateUrl: '/app/audiodata/create-playlist.html',