SenseNet / sensenet

Open Source Content Services Platform written in .NET
https://sensenet.com
GNU General Public License v2.0
173 stars 112 forks source link

Schema contains wrong localization values #914

Closed enikonemeth closed 4 years ago

enikonemeth commented 4 years ago

After update a localization file, the new schema contains wrong values.

E.g: I have changed the localization file of Group (CtdResourcesGH.xml). I set the displayName for Members field to: Membersxxx, I saved the file, the schema generated, but in the schema worng value was for the displayName of Members (the value was: Members). 2020-03-25_10h55_27 2020-03-25_10h56_05

      {
        "AllowMultiple": true,
        "AllowedTypes": [
          "User",
          "Group"
        ],
        "SelectionRoots": [
          "/Root/IMS/Public",
          "/Root"
        ],
        "Type": "ReferenceFieldSetting",
        "Name": "Members",
        "FieldClassName": "SenseNet.ContentRepository.Fields.ReferenceField",
        "DisplayName": "Members",
        "Description": "The members of this group.",
        "ReadOnly": false,
        "Compulsory": false,
        "OutputMethod": 0,
        "Visible": true,
        "VisibleBrowse": 0,
        "VisibleEdit": 0,
        "VisibleNew": 0,
        "DefaultOrder": 20
      },
tusmester commented 4 years ago

We should reset the client metadata provider cache when resources change. The problem is that currently there is no event for that (resource manager is in the content repository layer, the metadata provider is up in the OData layer). Working on it.