HOR-188 "(Unassigned) No se puede reclamar un caso debido a warnings..." SOLVED
Issue:
(Unassigned) No se puede reclamar un caso debido a warnings devueltos por los endpoints
Cause:
Se define un array como indice para un array
Solution:
Se agrego validacion para evitar que el indice no sea un array
This commit is contained in:
@@ -594,7 +594,8 @@ class Light extends Api
|
||||
'/\|(' . $field . ')\|/i',
|
||||
'|' . implode('|', array_keys($structure)) . '|',
|
||||
$arrayMatch
|
||||
)
|
||||
) &&
|
||||
!is_array($structure[$arrayMatch[1]])
|
||||
) {
|
||||
$newName = $structure[$arrayMatch[1]];
|
||||
$newData[$newName] = is_null($value) ? "":$value;
|
||||
@@ -605,7 +606,8 @@ class Light extends Api
|
||||
'/\|(' . $field . ')\|/i',
|
||||
'|' . implode('|', array_keys($str)) . '|',
|
||||
$arrayMatch
|
||||
)
|
||||
) &&
|
||||
!is_array($str[$arrayMatch[1]])
|
||||
) {
|
||||
$newName = $str[$arrayMatch[1]];
|
||||
$newData[$name][$newName] = is_null($value) ? "":$value;
|
||||
@@ -621,7 +623,8 @@ class Light extends Api
|
||||
'/\|(' . $field . ')\|/i',
|
||||
'|' . implode('|', array_keys($structure)) . '|',
|
||||
$arrayMatch
|
||||
)
|
||||
) &&
|
||||
!is_array($structure[$arrayMatch[1]])
|
||||
) {
|
||||
$newName = $structure[$arrayMatch[1]];
|
||||
$response[$newName] = is_null($d) ? "":$d;
|
||||
@@ -632,7 +635,8 @@ class Light extends Api
|
||||
'/\|(' . $field . ')\|/i',
|
||||
'|' . implode('|', array_keys($str)) .'|',
|
||||
$arrayMatch
|
||||
)
|
||||
) &&
|
||||
!is_array($str[$arrayMatch[1]])
|
||||
) {
|
||||
$newName = $str[$arrayMatch[1]];
|
||||
$response[$name][$newName] = is_null($d) ? "":$d;
|
||||
|
||||
Reference in New Issue
Block a user