Skip to content

Commit

Permalink
Display field just if integration is published
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Oct 3, 2019
1 parent b314ca2 commit 1bcbcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/FormSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1bcbcd9

Please sign in to comment.