File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,16 @@ class helper_plugin_struct_field extends helper_plugin_bureaucracy_field {
22
22
* @param array $args
23
23
*/
24
24
public function initialize ($ args ) {
25
- parent :: initialize ($ args );
25
+ $ this -> init ($ args );
26
26
27
27
// find the column
28
28
try {
29
29
$ this ->column = $ this ->findColumn ($ this ->opt ['label ' ]);
30
30
} catch (StructException $ e ) {
31
31
msg (hsc ($ e ->getMessage ()), -1 );
32
32
}
33
+
34
+ $ this ->standardArgs ($ args );
33
35
}
34
36
35
37
/**
@@ -41,7 +43,8 @@ public function initialize($args) {
41
43
protected function setVal ($ value ) {
42
44
if (!$ this ->column ) {
43
45
$ value = '' ;
44
- } else {
46
+ //don't validate placeholders here
47
+ } elseif ($ this ->replace ($ value ) == $ value ) {
45
48
$ validator = new ValueValidator ();
46
49
$ this ->error = !$ validator ->validateValue ($ this ->column , $ value );
47
50
if ($ this ->error ) {
You can’t perform that action at this time.
0 commit comments