I updated BLC to 2.2.1-SNAPSHOT, everything is OK i can see my customs sections etc... BUT when i click on a custom section i'm redirected to the first section of the module. For instance, i have a section PromotionCode in the module Merchandising when i click on my PromotionCode the URL is :
Code: Select all
http://localhost:8081/admin/promotion-code#moduleKey=BLCMerchandising&pageKey=PromotionCode
and im redirected to :
Code: Select all
http://localhost:8081/admin/promotion-code#moduleKey=BLCMerchandising&pageKey=Category
In BLCMain.java on method setCurrentPageKey, pagesMap doesn't contain my page PromotionCode :
Code: Select all
Map<String,String[]> pagesMap = modules.get(currentModuleKey).getPages();
Everything worked fine on BLC 2.1.3-SNAPSHOT, is something has changed to register a new section with BLC 2.2.0 ??? On MyMerchandisingModule i have :
Code: Select all
public class MyMerchandisingModule extends MerchandisingModule {
public void onModuleLoad() {
super.onModuleLoad();
List<String> promotionCodePermissions = new ArrayList<String>();
promotionCodePermissions.add("PERMISSION_CREATE_PROMOTION_CODE");
promotionCodePermissions.add("PERMISSION_UPDATE_PROMOTION_CODE");
promotionCodePermissions.add("PERMISSION_DELETE_PROMOTION_CODE");
promotionCodePermissions.add("PERMISSION_READ_PROMOTION_CODE");
setSection(
BLCMain.getMessageManager().getString("merchandisingPromotionCodeMainTitle"),
"promotionCode",
"my.company.admin.client.view.promotion.code.PromotionCodeView",
"promotionCodePresenter",
"my.company.admin.client.presenter.promotion.code.PromotionCodePresenter",
promotionCodePermissions
);
}
}
I added the mapping between Sections and Permissions, evertything should be ok. I'm stuck, have you any idea ?
PS: The only way to make it works it's to remove the super.onModuleLoad() and copy/paste all the code of the super class

Thanks