Announcement

Collapse
No announcement yet.

Enum shows all values (Uncaught TypeError: this.$headerActionsContainer is null)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enum shows all values (Uncaught TypeError: this.$headerActionsContainer is null)

    On a customer test system (latest espocrm version 8.1.4) I have stange issues with Enum fields which should be filtered by dynamic logic conditions:
    From time to time users sees all options unfiltered. This even happens for the status values defined in the current advance pack like resolution in "BPMN Process User Tasks".

    Does anyone have any ideas?
    Maybe this is a race condition? The customer runs sophos deep packet ispection which may delay responses by seconds.

    When I shift reload the page, the list is filtered as expected. When the list is unfiltered I see in the browser console:

    Code:
    Uncaught TypeError: this.$headerActionsContainer is null
    enableMenuItem espo-main.js:8321
    setup detail.js:43
    m bullbone.js:365
    f bullbone.js:342
    l bullbone.js:48
    trigger bullbone.js:327
    setMultiple espo-main.js:6346
    set espo-main.js:6295
    success espo-main.js:6491
    onload espo-main.js:19529
    r espo-main.js:19514
    b espo-main.js:19641
    request espo-main.js:19496
    sync espo-main.js:6274
    fetch espo-main.js:6497
    actionView espo-main.js:42393
    doAction espo-main.js:7361
    e espo-main.js:32269
    createController espo-main.js:32359
    _load loader.js:702
    require loader.js:437
    require loader.js:1142
    createController espo-main.js:32353
    getController espo-main.js:32342
    doAction espo-main.js:32289
    initRouter espo-main.js:32243
    Backbone 4
    dispatch espo-main.js:16871
    click a.link espo-main.js:23631
    jQuery 8
    _delegate bullbone.js:879
    _delegateEvents bullbone.js:873
    setElement bullbone.js:835
    setElementInAdvance bullbone.js:1107
    m bullbone.js:363
    f bullbone.js:342
    l bullbone.js:48
    trigger bullbone.js:327
    _afterRender bullbone.js:1324
    render bullbone.js:1235
    _getHtml bullbone.js:1677
    n bullbone.js:2683
    _executeLoadCallback loader.js:329
    _executeLoadCallback loader.js:329
    _handleResponseText loader.js:991
    _processRequest loader.js:925
    promise callback*_previousDefineAmd</_processRequest/< loader.js:920
    promise callback*_processRequest loader.js:909
    _load loader.js:775
    require loader.js:437
    require loader.js:1142
    template espo-main.js:32456
    _callExternalLoader bullbone.js:2438
    load bullbone.js:2450
    getTemplate bullbone.js:2692
    _getTemplate bullbone.js:1754
    _getHtml bullbone.js:1673
    s bullbone.js:1613
    _getNestedViewsHtmlMap bullbone.js:1638
    _getHtml bullbone.js:1677
    n bullbone.js:2683
    i bullbone.js:2734
    _buildTemplate bullbone.js:2748
    layoutTemplate espo-main.js:32460
    _callExternalLoader bullbone.js:2438
    load bullbone.js:2450
    _buildTemplate bullbone.js:2745
    getTemplate bullbone.js:2687
    _getTemplate bullbone.js:1754
    _getHtml bullbone.js:1673
    s bullbone.js:1613
    _getNestedViewsHtmlMap bullbone.js:1638
    _getHtml bullbone.js:1677
    n bullbone.js:2683
    _executeLoadCallback loader.js:329
    _executeLoadCallback loader.js:329
    espo-main.js:8321:6
    enableMenuItem espo-main.js:8321
    setup detail.js:43
    m bullbone.js:365
    f bullbone.js:342
    l bullbone.js:48
    trigger bullbone.js:327
    setMultiple espo-main.js:6346
    set espo-main.js:6295
    success espo-main.js:6491
    onload espo-main.js:19529
    (Async: EventHandlerNonNull)
    r espo-main.js:19514
    b espo-main.js:19641
    request espo-main.js:19496
    sync espo-main.js:6274
    fetch espo-main.js:6497
    actionView espo-main.js:42393
    doAction espo-main.js:7361
    e espo-main.js:32269
    createController espo-main.js:32359
    _load loader.js:702
    require loader.js:437
    require loader.js:1142
    createController espo-main.js:32353
    getController espo-main.js:32342
    doAction espo-main.js:32289
    initRouter espo-main.js:32243
    Backbone 4
    dispatch espo-main.js:16871
    click a.link espo-main.js:23631
    click a.link self-hosted:1359
    jQuery 8
    _delegate bullbone.js:879
    _delegateEvents bullbone.js:873
    setElement bullbone.js:835
    setElementInAdvance bullbone.js:1107
    m bullbone.js:363
    f bullbone.js:342
    l bullbone.js:48
    trigger bullbone.js:327
    _afterRender bullbone.js:1324
    render bullbone.js:1235
    _getHtml bullbone.js:1677
    n bullbone.js:2683
    _executeLoadCallback loader.js:329
    forEach self-hosted:203
    _executeLoadCallback loader.js:329
    _handleResponseText loader.js:991
    _processRequest loader.js:925
    (Async: promise callback)
    _processRequest loader.js:920
    (Async: promise callback)
    _processRequest loader.js:909
    _load loader.js:775
    require loader.js:437
    require loader.js:1142
    template espo-main.js:32456
    _callExternalLoader bullbone.js:2438
    load bullbone.js:2450
    getTemplate bullbone.js:2692
    _getTemplate bullbone.js:1754
    _getHtml bullbone.js:1673
    s bullbone.js:1613
    _getNestedViewsHtmlMap bullbone.js:1638
    _getHtml bullbone.js:1677
    n bullbone.js:2683
    i bullbone.js:2734
    _buildTemplate bullbone.js:2748
    layoutTemplate espo-main.js:32460
    _callExternalLoader bullbone.js:2438
    load bullbone.js:2450
    _buildTemplate bullbone.js:2745
    getTemplate bullbone.js:2687
    _getTemplate bullbone.js:1754
    _getHtml bullbone.js:1673
    s bullbone.js:1613
    _getNestedViewsHtmlMap bullbone.js:1638
    _getHtml bullbone.js:1677
    n bullbone.js:2683
    _executeLoadCallback loader.js:329
    forEach self-hosted:203
    _executeLoadCallback loader.js:329​

  • #2
    It's appears to be a race condition. I've never encountered it. Would be nice to have more information to reproduce.

    Does it happen only on the Process Tasks detail view? From code I see it may happen there. Don't see any other places yet.

    EDIT. Anyway, I think I know how to fix it.
    Last edited by yuri; 02-13-2024, 09:08 PM.

    Comment


    • #3
      Thanks for you prompt feedback yuri.
      I also see this effect on other custom entities having an Enum field (status) and dynamic logic conditions referencing other fields.

      Comment


      • #4
        Hi yuri, should I create a ticket in github? Unfortunately I didn't find a way yet to reproduce this effect locally without having a firewall in beteween slowing down some xhr requests.

        Comment


        • #5
          Didn't v8.1.5 fix the problem?

          Comment


          • #6
            wow - I didn't realize you already released 8.1.5 hours before. I just deployed and users will test now in their network.
            Thank you so much - I will report back soon.

            Comment

            Working...
            X