From a53b33c48b1fcc8d356889f0ee50c6d5ff29309c Mon Sep 17 00:00:00 2001 From: Sameen Fatima Date: Thu, 18 Apr 2024 17:30:44 +0500 Subject: [PATCH] fix: return only active CSOD configs --- CHANGELOG.rst | 4 ++++ enterprise/__init__.py | 2 +- integrated_channels/cornerstone/views.py | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d4bdaf5920..6270c38423 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,6 +15,10 @@ Change Log Unreleased ---------- +[4.15.5] +-------- +* fix: Improved the query to only fetch active configs for CSOD customers. + [4.15.4] -------- * fix: allowing for existing pecus to be added to enterprise groups diff --git a/enterprise/__init__.py b/enterprise/__init__.py index 0f7f2279a7..7d44c531d4 100644 --- a/enterprise/__init__.py +++ b/enterprise/__init__.py @@ -2,4 +2,4 @@ Your project description goes here. """ -__version__ = "4.15.4" +__version__ = "4.15.5" diff --git a/integrated_channels/cornerstone/views.py b/integrated_channels/cornerstone/views.py index 457cbdd2d3..d55715715d 100644 --- a/integrated_channels/cornerstone/views.py +++ b/integrated_channels/cornerstone/views.py @@ -127,7 +127,8 @@ def get(self, request, *args, **kwargs): worker_user = get_enterprise_worker_user() enterprise_config = CornerstoneEnterpriseCustomerConfiguration.objects.get( - enterprise_customer=enterprise_customer + enterprise_customer=enterprise_customer, + active=True ) exporter = enterprise_config.get_content_metadata_exporter(worker_user) transmitter = enterprise_config.get_content_metadata_transmitter()