From a6baef68d26a794fcd738eced7a6ec5031b71e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:18:33 +0100 Subject: [PATCH] Add ecc field on fetch for expose on api --- htdocs/core/class/ccountry.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/ccountry.class.php b/htdocs/core/class/ccountry.class.php index 1d798698e84..4dca978ab64 100644 --- a/htdocs/core/class/ccountry.class.php +++ b/htdocs/core/class/ccountry.class.php @@ -1,6 +1,7 @@ - * Copyright (C) 2024 MDW + * Copyright (C) 2024 MDW + * Copyright (C) 2025 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,6 +46,12 @@ class Ccountry extends CommonDict */ public $code_iso; + /** + * @var string + */ + public $ecc; + + /** * @var array|string,position:int,notnull?:int,visible:int<-5,5>|string,alwayseditable?:int<0,1>,noteditable?:int<0,1>,default?:string,index?:int,foreignkey?:string,searchall?:int<0,1>,isameasure?:int<0,1>,css?:string,csslist?:string,help?:string,showoncombobox?:int<0,4>,disabled?:int<0,1>,arrayofkeyval?:array,autofocusoncreate?:int<0,1>,comment?:string,copytoclipboard?:int<1,2>,validate?:int<0,1>,showonheader?:int<0,1>}> */ @@ -149,6 +156,7 @@ class Ccountry extends CommonDict $sql .= " t.rowid,"; $sql .= " t.code,"; $sql .= " t.code_iso,"; + $sql .= " t.ecc,"; $sql .= " t.label,"; $sql .= " t.active"; $sql .= " FROM ".$this->db->prefix()."c_country as t"; @@ -171,6 +179,7 @@ class Ccountry extends CommonDict $this->code = $obj->code; $this->code_iso = $obj->code_iso; $this->label = $obj->label; + $this->ecc = $obj->ecc; $this->active = $obj->active; }