From df0dc0f27a97d69e81b0df58dda5faf0250aaad3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 17 Jul 2013 09:36:38 +0000 Subject: [PATCH] If record ID is missing, don't try to get data for it - skip the whole request --- etemplate/js/et2_widget_historylog.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_historylog.js b/etemplate/js/et2_widget_historylog.js index 7f598576ff..eb9b62c702 100644 --- a/etemplate/js/et2_widget_historylog.js +++ b/etemplate/js/et2_widget_historylog.js @@ -351,8 +351,11 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider], dataFetch: function (_queriedRange, _callback, _context) { + // Skip getting data if there's no ID + if(!this.value.id) return; + // Pass the fetch call to the API - this.egw().dataFetch( + this.egw().dataFetch( this.getInstanceManager().etemplate_exec_id, _queriedRange, this._filters,