From 1c8805d7ca626afd2e9367987d3a6610b0085f9b Mon Sep 17 00:00:00 2001 From: Vlad Ghita Date: Thu, 17 May 2012 10:32:13 +0300 Subject: [PATCH] Added Section Schemas compatibility --- fields/field.multilingual_upload.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fields/field.multilingual_upload.php b/fields/field.multilingual_upload.php index 921287b..9aebb28 100644 --- a/fields/field.multilingual_upload.php +++ b/fields/field.multilingual_upload.php @@ -109,7 +109,7 @@ public function commit(){ `unique` = '%s' WHERE `field_id` = '%s';", - $this->handle(), $this->get('def_ref_lang'), $this->get('unique'), $this->get('id') + $this->handle(), $this->get('def_ref_lang') === 'yes' ? 'yes' : 'no', $this->get('unique'), $this->get('id') )); } @@ -346,6 +346,14 @@ public function entryDataCleanup($entry_id, $data){ + /*------------------------------------------------------------------------------------------------*/ + /* Field schema */ + /*------------------------------------------------------------------------------------------------*/ + + public function appendFieldSchema($f){} + + + /*------------------------------------------------------------------------------------------------*/ /* In-house */ /*------------------------------------------------------------------------------------------------*/ @@ -367,7 +375,6 @@ protected function getUniqueFilename($filename, $lang_code = null, $enable = fal return $filename; } - /** * It is possible that data from Symphony won't come as expected associative array. *