From 3e3805e4b6abd3acbb550ee03c5ff5f7436cd889 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Tue, 14 Jan 2025 00:30:29 +0100 Subject: [PATCH] fixed NNNN schema when N placeholders were contained at the end of the schema. fix #2777 --- .../jdimension/jlawyer/server/utils/CaseNumberGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/CaseNumberGenerator.java b/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/CaseNumberGenerator.java index 9c8e434c1..be3cf449b 100644 --- a/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/CaseNumberGenerator.java +++ b/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/CaseNumberGenerator.java @@ -932,7 +932,7 @@ private static synchronized String next(ArrayList allExisting, String pa if (DBG) { System.out.println("70"); } - if (existing.length() > mN.start() + s.length()) { + if (existing.length() >= mN.start() + s.length()) { allExistingGlobals.add(existing.substring(mN.start(), mN.start() + dfs.length())); } }