From 95988a5c8ec677f37548f0f3eeb8127fa27b7d54 Mon Sep 17 00:00:00 2001 From: Clemens Neubauer Date: Fri, 16 Aug 2024 13:33:59 +0000 Subject: [PATCH] fix function api_decode --- application/models/Services_model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/models/Services_model.php b/application/models/Services_model.php index 434e982e..36624843 100644 --- a/application/models/Services_model.php +++ b/application/models/Services_model.php @@ -456,6 +456,10 @@ class Services_model extends EA_Model $decoded_resource['currency'] = $service['currency']; } + if (array_key_exists('color', $service)) { + $decoded_resource['color'] = $service['color']; + } + if (array_key_exists('description', $service)) { $decoded_resource['description'] = $service['description']; }