Skip to content

Commit adaab1e

Browse files
committed
Regression fix (271p3/301p3) text controls default populated with control type
1 parent 63e19d4 commit adaab1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/plugins/function.control.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ function smarty_function_control($params, &$smarty) {
504504
case "number":
505505
case "range":
506506
$ctrl_name = $params['type'] . 'control';
507-
$control = new $ctrl_name($params['type']);
507+
$control = new $ctrl_name();
508508
$control->size = !empty($params['size']) ? $params['size'] : "40";
509509
$control->placeholder = !empty($params['placeholder']) ? $params['placeholder'] : "";
510510
$control->pattern = !empty($params['pattern']) ? $params['pattern'] : "";

0 commit comments

Comments
 (0)