diff --git a/app/Helpers/CommonHelper.php b/app/Helpers/CommonHelper.php
index dd2b5d4..687bb42 100644
--- a/app/Helpers/CommonHelper.php
+++ b/app/Helpers/CommonHelper.php
@@ -203,6 +203,9 @@ abstract class CommonHelper
}
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
public function getListFilter(string $field, mixed $value, array $viewDatas, array $extras = []): string
diff --git a/app/Helpers/Customer/ClientHelper.php b/app/Helpers/Customer/ClientHelper.php
index 50b7e2e..b304f7c 100644
--- a/app/Helpers/Customer/ClientHelper.php
+++ b/app/Helpers/Customer/ClientHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers\Customer;
+use RuntimeException;
+
class ClientHelper extends CustomerHelper
{
public function __construct()
@@ -93,6 +95,9 @@ class ClientHelper extends CustomerHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
} //
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
diff --git a/app/Helpers/Customer/ServiceHelper.php b/app/Helpers/Customer/ServiceHelper.php
index ced2b3f..3ecad6e 100644
--- a/app/Helpers/Customer/ServiceHelper.php
+++ b/app/Helpers/Customer/ServiceHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers\Customer;
+use RuntimeException;
+
class ServiceHelper extends CustomerHelper
{
public function __construct()
@@ -57,6 +59,9 @@ class ServiceHelper extends CustomerHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
public function getListLabel(string $field, string $label, array $viewDatas, array $extras = []): string
diff --git a/app/Helpers/Customer/Wallet/AccountHelper.php b/app/Helpers/Customer/Wallet/AccountHelper.php
index a5a0460..d6dc8cd 100644
--- a/app/Helpers/Customer/Wallet/AccountHelper.php
+++ b/app/Helpers/Customer/Wallet/AccountHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers\Customer\Wallet;
+use RuntimeException;
+
class AccountHelper extends WalletHelper
{
public function __construct()
@@ -49,6 +51,9 @@ class AccountHelper extends WalletHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
}
diff --git a/app/Helpers/Customer/Wallet/CouponHelper.php b/app/Helpers/Customer/Wallet/CouponHelper.php
index a49b181..a7933c2 100644
--- a/app/Helpers/Customer/Wallet/CouponHelper.php
+++ b/app/Helpers/Customer/Wallet/CouponHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers\Customer\Wallet;
+use RuntimeException;
+
class CouponHelper extends WalletHelper
{
public function __construct()
@@ -18,6 +20,9 @@ class CouponHelper extends WalletHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
}
diff --git a/app/Helpers/Customer/Wallet/PointHelper.php b/app/Helpers/Customer/Wallet/PointHelper.php
index bec0975..9d43a5d 100644
--- a/app/Helpers/Customer/Wallet/PointHelper.php
+++ b/app/Helpers/Customer/Wallet/PointHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers\Customer\Wallet;
+use RuntimeException;
+
class PointHelper extends WalletHelper
{
public function __construct()
@@ -18,6 +20,9 @@ class PointHelper extends WalletHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
}
diff --git a/app/Helpers/Equipment/CHASSISHelper.php b/app/Helpers/Equipment/CHASSISHelper.php
index 2208531..16aaabe 100644
--- a/app/Helpers/Equipment/CHASSISHelper.php
+++ b/app/Helpers/Equipment/CHASSISHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers\Equipment;
+use RuntimeException;
+
class CHASSISHelper extends EquipmentHelper
{
public function __construct()
@@ -18,6 +20,9 @@ class CHASSISHelper extends EquipmentHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
diff --git a/app/Helpers/Equipment/ServerHelper.php b/app/Helpers/Equipment/ServerHelper.php
index da7601c..d2b5a15 100644
--- a/app/Helpers/Equipment/ServerHelper.php
+++ b/app/Helpers/Equipment/ServerHelper.php
@@ -68,6 +68,9 @@ class ServerHelper extends EquipmentHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
diff --git a/app/Helpers/Equipment/ServerPartHelper.php b/app/Helpers/Equipment/ServerPartHelper.php
index 7e5354a..27a5e55 100644
--- a/app/Helpers/Equipment/ServerPartHelper.php
+++ b/app/Helpers/Equipment/ServerPartHelper.php
@@ -43,7 +43,7 @@ class ServerPartHelper extends EquipmentHelper
if (!array_key_exists($value, $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()])) {
throw new RuntimeException(static::class . '->' . __FUNCTION__ . "에서 오류발생: {$field}에서 {$value}에 해당하는 값이 존재하지 않습니다.");
}
- $value = $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()][$value];
+ $value = $viewDatas['formOptions'][$field]['options'][$viewDatas['entity']->getType()][$value]['text'];
break;
case 'SERVER':
$value = form_label(
@@ -93,6 +93,9 @@ class ServerPartHelper extends EquipmentHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
diff --git a/app/Helpers/Part/PartHelper.php b/app/Helpers/Part/PartHelper.php
index 5862419..7b1f149 100644
--- a/app/Helpers/Part/PartHelper.php
+++ b/app/Helpers/Part/PartHelper.php
@@ -3,6 +3,7 @@
namespace App\Helpers\Part;
use App\Helpers\CommonHelper;
+use RuntimeException;
abstract class PartHelper extends CommonHelper
{
@@ -21,6 +22,9 @@ abstract class PartHelper extends CommonHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
}
diff --git a/app/Helpers/PaymentHelper.php b/app/Helpers/PaymentHelper.php
index e712c4c..0c3b15d 100644
--- a/app/Helpers/PaymentHelper.php
+++ b/app/Helpers/PaymentHelper.php
@@ -2,6 +2,8 @@
namespace App\Helpers;
+use RuntimeException;
+
class PaymentHelper extends CommonHelper
{
public function __construct()
@@ -95,6 +97,9 @@ class PaymentHelper extends CommonHelper
$value = parent::getFieldView($field, $value, $viewDatas, $extras);
break;
}
+ if (is_array($value)) {
+ throw new RuntimeException(static::class . "->" . __FUNCTION__ . "에서 오류발생:{$field}에 해당하는 Return 값이 배열형식입니다.\n" . var_export($value, true));
+ }
return $value;
}
public function getListButton(string $action, string $label, array $viewDatas, array $extras = []): string
diff --git a/app/Views/admin/client/detail.php b/app/Views/admin/client/detail.php
index efae9fa..d6a6fd5 100644
--- a/app/Views/admin/client/detail.php
+++ b/app/Views/admin/client/detail.php
@@ -1,5 +1,7 @@
= $this->extend($viewDatas['layout']['layout']) ?>
= $this->section('content') ?>
+
+