Details
-
Bug
-
Resolution: Fixed
-
None
-
Critical
-
Empty show more show less
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
- relates to
-
TRANSLATE-1045 javascript error: rendered block refreshed at 16 rows while BufferedRenderer view size is 48
- Done