From 5ad56b1dde2957da1b119c2797469453bb055311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Ho=CC=88rrmann?= Date: Thu, 4 Jun 2015 19:24:43 +0200 Subject: [PATCH] Symphony 2.6 Compatibility --- extension.meta.xml | 3 +++ fields/field.xml.php | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/extension.meta.xml b/extension.meta.xml index 000e18a..6d126b1 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -13,6 +13,9 @@ + + - Symphony 2.6 compatibility + - Clean-up - Set monospace font diff --git a/fields/field.xml.php b/fields/field.xml.php index e6a08fd..4d88375 100755 --- a/fields/field.xml.php +++ b/fields/field.xml.php @@ -91,6 +91,19 @@ public function createTable() ); } + public function commit() + { + $id = $this->get('id'); + if ($id === false) { + return false; + } + + $fields = array(); + $fields['size'] = $this->get('size'); + + return FieldManager::saveSettings($id, $fields); + } + public function fetchIncludableElements() { return array(