Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1800

Uncaught Error: rendered block refreshed at 0 rows

    XMLWordPrintable

Details

    Description

      Problem:

      When the user try to open the language resources panel, and the 'search query' and 'match query' acl rights are disabled for the user, an js exception is thrown.

      More info about the problem

      When turning off the 'languageResourcesMatchQuery' and 'languageResourcesSearchQuery' right for the user, the language resources search grid and the match grid in the editor are disabled. This also will prevent the language resources frontend controller to be loaded.

      In the LanguageResources.js (the frontend controller from above) the default language resources service classes are initialized. Those classes are used for rendering and structuring different language resources types in the TmOverview grid.

      And since the service classes where not initialized because the LanguageResources controller was not loaded, this error happens.

      Solution

      Move the init of the language resources default service class in the TmOvervice frontend controller. The default service should be registered/initialized before the TmOverview panel/component is added (best is in the controller init/constructor class) .

      Stack:

      Uncaught Error: rendered block refreshed at 0 rows while BufferedRenderer view size is 49
      at new Ext.Error (ext-all-debug.js:2611)
      at Function.raise (ext-all-debug.js:2670)
      at Object.Ext.raise (ext-all-debug.js:2749)
      at constructor.doRefreshView (overrides.js?v=3.2.7:630)
      at constructor.getRange (ext-all-debug.js:214687)
      at constructor.refreshView (ext-all-debug.js:224617)
      at constructor.refreshView (ext-all-debug.js:182307)
      at constructor.onDataRefresh (ext-all-debug.js:182291)
      at constructor.callParent (ext-all-debug.js:12493)
      at constructor.onDataRefresh (ext-all-debug.js:205662)

      Attachments

        Issue Links

          Activity

            People

              aleksandar Aleksandar Mitrev
              aleksandar Aleksandar Mitrev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: