From c68e6ecb89498fe3f5711f0a89740f241062ebd7 Mon Sep 17 00:00:00 2001 From: Alexey Derkach Date: Fri, 30 Aug 2013 14:24:42 +0300 Subject: [PATCH] fix creation of html widget --- ipf/form/field/varchar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf/form/field/varchar.php b/ipf/form/field/varchar.php index 804576a..57078d6 100644 --- a/ipf/form/field/varchar.php +++ b/ipf/form/field/varchar.php @@ -24,7 +24,7 @@ class IPF_Form_Field_Varchar extends IPF_Form_Field protected function createWidget($args) { - if ($this->max_length > 255) { + if ($this->max_length > 255 && $this->widget !== 'IPF_Form_Widget_HTMLInput') { $widgetClass = 'IPF_Form_Widget_TextareaInput'; } else { $widgetClass = $this->widget; -- 2.49.0