Skip to content

Commit 8aa0feb

Browse files
committed
make json output work?
1 parent 395257b commit 8aa0feb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/components/formit/model/formit/fihooks.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function __construct(FormIt &$formit,array $config = array(),$type = '') {
9292
'mathOp1Field' => 'op1',
9393
'mathOp2Field' => 'op2',
9494
'mathOperatorField' => 'operator',
95-
'jsonOutputPlaceholder' => ''
95+
'hookErrorJsonOutputPlaceholder' => ''
9696
),$config);
9797
$this->type = $type;
9898
}
@@ -693,6 +693,7 @@ public function math(array $fields = array()) {
693693
public function processErrors() {
694694
$errors = array();
695695
$jsonerrors = array();
696+
$jsonOutputPlaceholder = $this->config['hookErrorJsonOutputPlaceholder'];
696697
if (!empty($jsonOutputPlaceholder)) {
697698
$jsonerrors = array(
698699
'errors' => array(),

0 commit comments

Comments
 (0)