If record ID is missing, don't try to get data for it - skip the whole request

This commit is contained in:
Nathan Gray 2013-07-17 09:36:38 +00:00
parent 85db39ed4e
commit df0dc0f27a

View File

@ -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,