mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
If record ID is missing, don't try to get data for it - skip the whole request
This commit is contained in:
parent
85db39ed4e
commit
df0dc0f27a
@ -351,6 +351,9 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
|
|||||||
|
|
||||||
|
|
||||||
dataFetch: function (_queriedRange, _callback, _context) {
|
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
|
// Pass the fetch call to the API
|
||||||
this.egw().dataFetch(
|
this.egw().dataFetch(
|
||||||
this.getInstanceManager().etemplate_exec_id,
|
this.getInstanceManager().etemplate_exec_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user