Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Entity History - Change Log showing namespace instead of name #6380


User avatar
0
aggarwal created

Hi,

My project's Change log shows Namespaces instead of Entity Name.

Is there a way to fix this?

Also, the dropdown does not have the Objects available.

Note, My entities have entity history enabled with [Audited] tag and lines uncommented in *EntityFrameworkCoreModule.cs

Thanks for replying.

Regards, Vikas


4 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    What do you mean?

  • User Avatar
    0
    aggarwal created

    Hi aaron,

    <br> In the documentation it shows as below. This does not show "namespace", rather the user friendly name of the Entity. In this case its "Role".

    <br>

    Does that help?

    Regards, Vikas

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @aggarwal

    The problem about empty dropdown is fixed here https://github.com/aspnetzero/aspnet-zero-core/issues/2103

    For problem about namespace, you need to define localization like the one we did for Role, see https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Localization/AbpZeroTemplate/AbpZeroTemplate.xml#L818

  • User Avatar
    0
    aggarwal created

    Hi @ismcagdas.

    Everything working now, execpt the localisation for dropdown was not getting picket up.

    Line 140 needs a small fix in following. Can you review and get that logged as github issue?

    https://github.com/aspnetzero/aspnet-zero-core/commit/7eb8a38d46bc704dbc6250b49e240c149900caf7

    •             entityHistoryObjectTypes.Add(new NameValueDto(enabledEntity, enabledEntity));
      
    •             entityHistoryObjectTypes.Add(new NameValueDto(L(enabledEntity), enabledEntity));
      

    Thank you for your help :)