Skip to content

Commit

Permalink
Merge pull request #10131 from abpframework/revert-10125-enisn/rel-4.…
Browse files Browse the repository at this point in the history
…4/cms-kit-fix-menu-item-page

Revert "CmsKit - Fix setting a Page while creating MenuItem  #10123"
  • Loading branch information
hikalkan committed Sep 23, 2021
2 parents 6bfaaf4 + 2ceb1e3 commit b8e8dfa
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ public virtual async Task<MenuItemDto> CreateAsync(MenuItemCreateInput input)
CurrentTenant.Id
);

if (input.PageId.HasValue)
{
MenuManager.SetPageUrl(menuItem, await PageRepository.GetAsync(input.PageId.Value));
}
else
{
menuItem.SetUrl(input.Url);
}

await MenuItemRepository.InsertAsync(menuItem);

return ObjectMapper.Map<MenuItem, MenuItemDto>(menuItem);
Expand Down

0 comments on commit b8e8dfa

Please sign in to comment.