Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liste: Bei leeren Joins werden falsche Inhalte angezeigt #107

Closed
areanet-patzak opened this issue Jul 3, 2018 · 0 comments
Closed

Liste: Bei leeren Joins werden falsche Inhalte angezeigt #107

areanet-patzak opened this issue Jul 3, 2018 · 0 comments

Comments

@areanet-patzak
Copy link
Contributor

/areanet/PIM-UI/default/assets/scripts/directives/autoformat.directive.js:

case 'join':
    var fullEntity    = scope.schema.properties[property].accept.split('\\');
    var entity        = fullEntity[(fullEntity.length - 1)];
    if(fullEntity[0] == 'Areanet'){
        entity = 'PIM\\' + entity;
    }

    var joinSchema    = localStorageService.get('schema')[entity];

    if(scope.object[property]){

        if(joinSchema.settings.labelProperty){
            element.text(scope.object[property][joinSchema.settings.labelProperty]);
        }else{
            var firstProperty = joinSchema.list[Object.keys(joinSchema.list)[0]];
            element.text(scope.object[property][firstProperty]);
        }

    } else {
        element.text('');
    }
    break;
@areanet-patzak areanet-patzak added this to the 1.4.1 milestone Jul 3, 2018
areanet-schmid pushed a commit that referenced this issue Jul 23, 2018
fixed #108: API-Fehler bei Permissin::OWN und mehreren zugeteilten Benutzern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants