Regex-Konfigurationsmöglichkeit für IPN-Vorschläge einführen

Die Einstellungen für die IPN-Vorschlagslogik wurden um eine Regex-Validierung und eine Hilfetext-Konfiguration erweitert. Tests und Änderungen an den Formularoptionen wurden implementiert.
This commit is contained in:
Marcel Diegelmann 2025-10-13 15:29:48 +02:00
parent 654c2ed2af
commit 6589e0d725
8 changed files with 395 additions and 11 deletions

View file

@ -285,7 +285,7 @@ class PartRepository extends NamedDBElementRepository
continue;
}
if ($part->getId() === $currentPart->getId()) {
if ($part->getId() === $currentPart->getId() && $currentPart->getID() !== null) {
// Extract and return the current part's increment directly
$incrementPart = substr($part->getIpn(), -$suggestPartDigits);
if (is_numeric($incrementPart)) {