diff --git a/public/js/pages/Cpeprovisioning/Cpeprovisioning.js b/public/js/pages/Cpeprovisioning/Cpeprovisioning.js
index 0325a6e6f..3667783cc 100644
--- a/public/js/pages/Cpeprovisioning/Cpeprovisioning.js
+++ b/public/js/pages/Cpeprovisioning/Cpeprovisioning.js
@@ -56,6 +56,9 @@ Vue.component('Cpeprovisioning', {
+
+
+
@@ -253,6 +256,16 @@ Vue.component('Cpeprovisioning', {
.then(() => window.notify('success', 'Kopiert!'))
.catch(() => window.notify('error', 'Fehler beim Kopieren'));
},
+ getRadiusSearchUrl(item) {
+ const custNum = item.owner_customer_number || '';
+ const basePath = window.TT_CONFIG.BASE_PATH || '';
+ // If customer number starts with 7000, use ESTMK search mode
+ if (custNum.startsWith('7000')) {
+ return `${basePath}/Radius?estmk_nr=${encodeURIComponent(custNum)}`;
+ }
+ // Otherwise use autocomplete search with custnum
+ return `${basePath}/Radius?custnum=${encodeURIComponent(custNum)}`;
+ },
handleKeydown(e) {
// CTRL + ALT + E to open Extension Config
if (e.code === 'KeyE' && e.ctrlKey && e.altKey) {
diff --git a/public/js/pages/Radius/RadiusUsers.js b/public/js/pages/Radius/RadiusUsers.js
index bc3e5d96a..301768ad8 100644
--- a/public/js/pages/Radius/RadiusUsers.js
+++ b/public/js/pages/Radius/RadiusUsers.js
@@ -251,8 +251,25 @@ const RadiusUsers = {
mounted() {
const urlParams = new URLSearchParams(window.location.search);
const infoParam = urlParams.get('info');
+ const custnumParam = urlParams.get('custnum');
+ const estmkParam = urlParams.get('estmk_nr');
+
if (infoParam) {
this.info = infoParam;
+ }
+
+ // Handle customer number search from URL (e.g., from Cpeprovisioning)
+ if (estmkParam) {
+ // ESTMK search mode (for 7000* customer numbers)
+ this.searchMode = 'text';
+ this.billAddrDisplay = estmkParam;
+ this.loadRadiusUsers();
+ } else if (custnumParam) {
+ // Autocomplete mode - set custnum directly and search
+ this.billAddrCustnum = custnumParam;
+ this.billAddrDisplay = custnumParam;
+ this.loadRadiusUsers();
+ } else if (infoParam) {
this.loadRadiusUsers();
}
this.observer = new IntersectionObserver(([e]) => {