Merge pull request #32723 from defrance/patch-659973

Add ecc field on fetch for expose on api
This commit is contained in:
Laurent Destailleur
2025-01-20 16:38:11 +01:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2007-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2025 Charlene Benke <charlene@patas-monkey.com>
*
* 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,array{type:string,label:string,enabled:int<0,2>|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<int|string,string>,autofocusoncreate?:int<0,1>,comment?:string,copytoclipboard?:int<1,2>,validate?:int<0,1>,showonheader?:int<0,1>}>
*/
@@ -164,6 +171,7 @@ class Ccountry extends CommonDict
$sql .= " t.rowid,";
$sql .= " t.code,";
$sql .= " t.code_iso,";
$sql .= " t.ecc,";
$sql .= " t.label,";
$sql .= " t.eec,";
$sql .= " t.active,";
@@ -190,6 +198,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;
$this->favorite = $obj->favorite;
$this->eec = $obj->eec;