From: Alexey Derkach Date: Fri, 30 Aug 2013 11:24:42 +0000 (+0300) Subject: fix creation of html widget X-Git-Tag: 0.5~49 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=c68e6ecb89498fe3f5711f0a89740f241062ebd7;p=ipf.git fix creation of html widget --- 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;