From d2bb7c7da0d50060a47debb0e4cdfabab6e20287 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 8 Apr 2024 16:47:59 +0300 Subject: [PATCH] fix urls for company functions for users --- erp24/views/companyFunctionsForUsers/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erp24/views/companyFunctionsForUsers/index.php b/erp24/views/companyFunctionsForUsers/index.php index b28172b5..8987b7b4 100755 --- a/erp24/views/companyFunctionsForUsers/index.php +++ b/erp24/views/companyFunctionsForUsers/index.php @@ -7,17 +7,17 @@ function writeNode($node, $depth = 0) { $executors = []; foreach ($node['executors'] as $ind => $executor) { $executors []= Html::a($executor['admin']['name'], - ['/companyFunctionsForUsers/index', 'action' => 'clickOnExecutor', 'admin_id' => $executor['admin']['id'], 'company_function_id' => $node['id']], + ['/company-functions-for-users/index', 'action' => 'clickOnExecutor', 'admin_id' => $executor['admin']['id'], 'company_function_id' => $node['id']], ['class' => 'badge rounded-pill bg-info', 'target' => '_blank']); } $style = isset($node['entity']) ? "style='border: 3px solid #cdcdcd'" : ""; echo "
" - . Html::a($node['name'], ['/companyFunctionsForUsers/index', 'action' => 'clickOnFunction', 'company_function_id' => $node['id']], ['class' => 'btn btn-light font-weight-bold font-size-' . ($depth), 'target' => '_blank']) + . Html::a($node['name'], ['/company-functions-for-users/index', 'action' => 'clickOnFunction', 'company_function_id' => $node['id']], ['class' => 'btn btn-light font-weight-bold font-size-' . ($depth), 'target' => '_blank']) . (isset($node['admin']) ? " ÐÐ´Ð¼Ð¸Ð½.функ. " . Html::a($node['admin']['admin']['name'], - ['/companyFunctionsForUsers/index', 'action' => 'clickOnAdministrator', 'company_function_id' => $node['id']], + ['/company-functions-for-users/index', 'action' => 'clickOnAdministrator', 'company_function_id' => $node['id']], ['class' => 'badge rounded-pill bg-info', 'target' => '_blank']) : "") . (count($node['executors']) > 0 ? " Ð˜ÑÐ¿Ð¾Ð»Ð½Ð¸Ñ‚ели " . implode(', ', $executors) : "") . (isset($node['entity']) ? " Ð¦Ð¸ÐºÐ» по " : "") @@ -91,7 +91,7 @@ $this->registerCss($fontSize); $.each(data, function() { const a = document.createElement("a"); - a.href = "/companyFunctionsForUsers/index?company_function_id=" + function_id + "&entity_id=" + this['id'] + "&action=clickOnEntity"; + a.href = "/company-functions-for-users/index?company_function_id=" + function_id + "&entity_id=" + this['id'] + "&action=clickOnEntity"; a.target = "_blank"; a.classList.add("btn"); a.classList.add("btn-link"); -- 2.39.5