diff --git a/EventListener/FormSubscriber.php b/EventListener/FormSubscriber.php index ee47066..6a0c7db 100644 --- a/EventListener/FormSubscriber.php +++ b/EventListener/FormSubscriber.php @@ -48,7 +48,7 @@ public function __construct( IntegrationHelper $integrationHelper ) { $integrationObject = $integrationHelper->getIntegrationObject(InternationalPhoneInputIntegration::INTEGRATION_NAME); - if ($integrationObject instanceof AbstractIntegration) { + if ($integrationObject instanceof AbstractIntegration && $integrationObject->getIntegrationSettings()->getIsPublished()) { $this->internationalphoneinputIsConfigured = true; } }