From d5acb5f888b5a56e99f5ffb5cbd498197c8763bb Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 3 Feb 2014 16:03:32 +0000 Subject: [PATCH] Don't try to refresh a not-fully-initialized nextmatch. Fixes type error when switching to an open app that was loaded on login. --- etemplate/js/et2_extension_nextmatch.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 638e0df22d..70480957b6 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -421,6 +421,12 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], * @fires refresh from the widget itself */ refresh: function(_row_ids, _type) { + // Framework trying to refresh, but nextmatch not fully initialized + if(this.controller === null) + { + return; + } + if (typeof _type == 'undefined') _type = 'edit'; if (typeof _row_ids == 'string' || typeof _row_ids == 'number') _row_ids = [_row_ids]; if (typeof _row_ids == "undefined" || _row_ids === null)