From 190984a560c275fe47737255f5e59c31b8625fcd Mon Sep 17 00:00:00 2001 From: Kusal Kalhara Date: Thu, 5 Sep 2019 15:49:02 +0530 Subject: [PATCH] add custom data to table --- .swp | Bin 0 -> 12288 bytes .../src/Data/Admin/Api/AbstractDataImporter.php | 12 +++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .swp diff --git a/.swp b/.swp new file mode 100644 index 0000000000000000000000000000000000000000..50f3de98235a5836e37ea5eed5e4678ac1eeaa11 GIT binary patch literal 12288 zcmeI%u?oU45P;#UTPHHg}U>ZDB5Dv)mfbM{~Lrxw5UhEFyqFKLo;by-Mn< zKA%ma$vEvtSyX`l0tg_000IagfB*ts1WFso!(|%$vIT#lmtshQ00IagfB*srAbdataImport->columns; - $headers = json_decode($columns); + + $headers = json_decode($columns); + while(sizeof($headers)!=sizeof($data)){ + $name = $data[sizeof($headers)]; + $test = (object)["name" => $name, "title" => "", "type" => "Normal", "dependOn" => "NULL", "dependOnField" => "", "isKeyField" => "No", "idField" => "No", "id" => "columns_36"]; + + array_push($headers, $test); + } + + LogManager::getInstance()->info("test --------------"); $counter = 0; foreach ($headers as $column) { @@ -69,6 +78,7 @@ abstract class AbstractDataImporter implements DataImporter { $this->dataImport = new DataImport(); $this->dataImport->Load("id =?", array($dataImportId)); + } public function updateCustomFields()