Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas 319 posts 606 karma points c-trib
    Jul 16, 2019 @ 18:46
    Thomas
    0

    Umbraco 8 backoffice user edit log

    Hey,

    I'm trying to create a dashboard in the backoffice. I can't get it to show med the user log.

    I have this controller, but the getuserlog aint working

    function dashboardController($scope, userService, logResource, usersResource) {
    var vm = this;
    
    vm.UserName = 'guest';
    vm.UserEmail = "[email protected]";
    vm.UserLogHistory = [];
    
    function init() {
        var user = userService.getCurrentUser().then(function (user) {
            vm.UserName = user.name;
            vm.UserEmail = user.email;
        });
        logResource.getUserLog("save", new Date())
            .then(function (log) {
                alert('its here!');
        });
    }   
    init();
    }
    angular.module("umbraco").controller("Cabana.DashboardController", dashboardController);
    

    i'm getting this error: Image

  • David Challener 80 posts 444 karma points c-trib
    Jul 17, 2019 @ 09:13
    David Challener
    0

    Hi Thomas,

    I don't know much about this method but can see there has been a bunch of work on it! https://github.com/umbraco/Umbraco-CMS/pull/2719

    It looks like that method has been made obsolete around version 7.13, perhaps try with the paged version getPagedUserLog

    https://github.com/umbraco/Umbraco-CMS/blob/f55e05da79ca827b192a03d6d1271501bced0b66/src/Umbraco.Web.UI.Client/src/common/resources/log.resource.js#L132

    HTH, David

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies