v9.0.1 : Issue Meeting list view when add "Users" search field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1496

    v9.0.1 : Issue Meeting list view when add "Users" search field

    Uncaught (in promise) TypeError: Cannot read properties of null (reading 'prepend')
    at s.prepareEditItemElement (espo-crm.js:6114:64)
    at s.addLinkHtml (espo-main.js:36633:32)
    at s.addLinkHtml (espo-main.js:72772:22)
    at espo-main.js:36558:14
    at Array.forEach (<anonymous>)
    at s.renderLinks (espo-main.js:36557:16)
    at s.afterRender (espo-main.js:36529:14)
    at s._afterRender (bullbone.js:1382:18)
    at s._afterRender (bullbone.js:1378:32)
    at r._afterRender (bullbone.js:1378:32)

    Hi Yuri,
    on demo too.
    i don't know how i do this but :
    Step To Reproduce
    - i have activate kanban for meeting ( i don't think it's that)
    - so i played click listview ... click kanban
    - so after i have added "users" field as search .. then the error occur
    - then i click kanban and reclik listview .. all seemt ok but "Users" search field is no more displayed
    - then you can add all search field.. he disappear.

    You can see in print-screen.

    Seemt this function :

    HTML Code:
    prepareEditItemElement(id, name) {
          const itemElement = super.prepareEditItemElement(id, name);
          const avatarHtml = this.getHelper().getAvatarHtml(id, 'small', 18, 'avatar-link');
          if (avatarHtml) {
            const img = new DOMParser().parseFromString(avatarHtml, 'text/html').body.childNodes[0];
            itemElement.children[0].querySelector('.link-item-name').prepend(img);   <---- Here
          }
          return itemElement;
        }  
    Look a the second print-screen, "Users" field is not there. (not in search field and not in header)
    I think this is not related to kanban.

    Best Regards
    Last edited by item; Yesterday, 10:02 PM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • item
    Active Community Member
    • Mar 2017
    • 1496

    #2
    Edit,
    just try with firefox, clear cache and incognito and google chrome
    There are a issue with "Users" ...
    In print-screen, try to choose user.. then error occur.

    Not with contacs or leads

    Hope i am just, if some one other can reproduce
    Attached Files
    Last edited by item; Yesterday, 10:26 PM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • yuri
      Member
      • Mar 2014
      • 8602

      #3
      Thanks. fixed.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...