尝试添加菜单链接2017 R2时Acumatica Sitemap JS错误

时间:2019-05-22 13:19:14

标签: acumatica

我们正在尝试将菜单链接添加到站点地图(我们已经进行了一年了),突然发现在单击“添加菜单项”后,什么都不显示的阻塞问题

enter image description here

控制台中也存在js错误(请参见下文),当我们尝试单击“添加菜单项”时出现错误

控制台的屏幕截图,然后在下面复制粘贴

enter image description here

这是getScreenUrl函数-但我相信这是Acumatica的一部分,所以我不确定如何解决此问题。

TypeError: Cannot read property 'lastIndexOf' of undefined
    at Object.getScreenUrl (site.js:1391)
    at site.js:3245
    at Array.map (<anonymous>)
    at site.js:3242
    at Array.map (<anonymous>)
    at Object.render (site.js:3211)
    at k (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:85)
    at beginWork (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:88)
    at e (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:59)
    at k (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:60)
T @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:64
Q @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:61
ed @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:65
fb @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:64
updateContainer @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:238
(anonymous) @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:146
unbatchedUpdates @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:67
Bb @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:146
render @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:244
renderScreensToSelect @ site.js:1972
(anonymous) @ site.js:544
dispatch @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:3
q.handle @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:3
PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:62 Uncaught TypeError: Cannot read property 'lastIndexOf' of undefined
    at Object.getScreenUrl (site.js:1391)
    at site.js:3245
    at Array.map (<anonymous>)
    at site.js:3242
    at Array.map (<anonymous>)
    at Object.render (site.js:3211)
    at k (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:85)
    at beginWork (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:88)
    at e (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:59)
    at k (PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:60)
getScreenUrl @ site.js:1391
(anonymous) @ site.js:3245
(anonymous) @ site.js:3242
render @ site.js:3211
k @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:85
beginWork @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:88
e @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:59
k @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:60
Q @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:61
ed @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:65
fb @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:64
updateContainer @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:238
(anonymous) @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:146
unbatchedUpdates @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:67
Bb @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:146
render @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:244
renderScreensToSelect @ site.js:1972
(anonymous) @ site.js:544
dispatch @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:3
q.handle @ PX.ScriptBatch.axd?d=cFBYLldlYi5VSXxQWC5XZWIuVUkuRXh00&t=636631681020000000:3


    getScreenUrl: function (url)
    {
        var start = url.lastIndexOf('/') + 1, end = url.indexOf('?', start);
        if (end < 0) return url.substring(start).toLowerCase();

        var query = url.split('?')[1], query2 = new Array();
        if (query)
        {
            var params = query.split('&');
            for (var i = 0; i < params.length; i++)
            {
                var pair = params[i].split('='), name = pair[0].toLowerCase();
                if (this.__systemParams.indexOf(name) < 0) query2.push(params[i]);
            }
        }

        if (query2.length == 0) return url.substring(start, end).toLowerCase();
        return (url.substring(start, end) + '?' + query2.join('&')).toLowerCase();
    },

0 个答案:

没有答案