From 5bd023629699ad89c9198ea8a5928e9f0dff1768 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Fri, 26 Jun 2009 09:24:58 +0200 Subject: [PATCH] Allow to override attribute settings with the global attribute configuration. --- koward/lib/Koward/Form/Object.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koward/lib/Koward/Form/Object.php b/koward/lib/Koward/Form/Object.php index dc8001700..a6cd81d3c 100644 --- a/koward/lib/Koward/Form/Object.php +++ b/koward/lib/Koward/Form/Object.php @@ -154,6 +154,10 @@ class Koward_Form_Object extends Horde_Form { } else { $form_attributes[$key]['label'] = $key; } + if (isset($this->koward->attributes[$key])) { + $form_attributes[$key] = array_merge($form_attributes[$key], + $this->koward->attributes[$key]); + } if (isset($config['attributes']['fields'][$key])) { $form_attributes[$key] = array_merge($form_attributes[$key], $config['attributes']['fields'][$key]); -- 2.11.0