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:
Victor Saisa Lopez
2016-02-04 11:39:33 -04:00
parent 56284d56a8
commit ab8f7e20b7

View File

@@ -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;