Skip to content

Commit

Permalink
COMMERCE-2014 Switch to CPField constant
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsloan authored and marco-leo committed Dec 12, 2019
1 parent 101f39b commit 37b2912
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import com.liferay.commerce.payment.service.base.CommercePaymentMethodGroupRelLocalServiceBaseImpl;
import com.liferay.commerce.product.catalog.CPCatalogEntry;
import com.liferay.commerce.product.catalog.CPQuery;
import com.liferay.commerce.product.constants.CPField;
import com.liferay.commerce.product.data.source.CPDataSourceResult;
import com.liferay.commerce.product.model.CPDefinition;
import com.liferay.commerce.product.search.CPDefinitionIndexer;
import com.liferay.commerce.product.service.CPDefinitionLocalService;
import com.liferay.commerce.product.service.CommerceCatalogService;
import com.liferay.commerce.product.util.CPDefinitionHelper;
Expand Down Expand Up @@ -365,9 +365,8 @@ public CommercePaymentMethodGroupRel setActive(

attributes.put(Field.STATUS, WorkflowConstants.STATUS_APPROVED);

attributes.put(CPDefinitionIndexer.FIELD_PUBLISHED, true);
attributes.put(
CPDefinitionIndexer.FIELD_SUBSCRIPTION_ENABLED, true);
attributes.put(CPField.PUBLISHED, true);
attributes.put(CPField.SUBSCRIPTION_ENABLED, true);

long groupId = commercePaymentMethodGroupRel.getGroupId();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import com.liferay.commerce.payment.util.comparator.CommercePaymentMethodGroupRelNameOrderByComparator;
import com.liferay.commerce.payment.web.internal.admin.PaymentMethodsCommerceAdminModule;
import com.liferay.commerce.product.catalog.CPQuery;
import com.liferay.commerce.product.constants.CPField;
import com.liferay.commerce.product.data.source.CPDataSourceResult;
import com.liferay.commerce.product.search.CPDefinitionIndexer;
import com.liferay.commerce.product.service.CommerceChannelLocalService;
import com.liferay.commerce.product.util.CPDefinitionHelper;
import com.liferay.commerce.service.CommerceOrderLocalService;
Expand Down Expand Up @@ -192,8 +192,8 @@ public int getRecurringCPDefinitionsCount(

attributes.put(Field.STATUS, WorkflowConstants.STATUS_APPROVED);

attributes.put(CPDefinitionIndexer.FIELD_PUBLISHED, true);
attributes.put(CPDefinitionIndexer.FIELD_SUBSCRIPTION_ENABLED, true);
attributes.put(CPField.PUBLISHED, true);
attributes.put(CPField.SUBSCRIPTION_ENABLED, true);

long groupId = commercePaymentMethodGroupRel.getGroupId();

Expand Down

0 comments on commit 37b2912

Please sign in to comment.