From 24001380f2695ba10a91c83be929cadbea43ff3a Mon Sep 17 00:00:00 2001 From: Arne Morken Date: Fri, 8 Dec 2023 16:05:21 +0100 Subject: [PATCH] Bugfix: dataSearchMaxId() should return id even if no type is specified. --- view/anyModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/anyModel.js b/view/anyModel.js index 1024da4..9c58b2f 100644 --- a/view/anyModel.js +++ b/view/anyModel.js @@ -830,7 +830,7 @@ anyModel.prototype.dataSearchMaxId = function (data,type,_prev_type) else _prev_type = dtype; if (!dtype) - return -1; + dtype = type; if (type == dtype) this.max = Math.max(this.max,max); }