Skip to content

Commit 89be912

Browse files
author
Szymon Olewniczak
committed
fix: struct_field in bureaucracy form now supports a default value
Before that we cannot use bureaucracy default values for struct_field ("=default value" syntax). Now it's possible.
1 parent fd85dc6 commit 89be912

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helper/field.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ class helper_plugin_struct_field extends helper_plugin_bureaucracy_field {
2222
* @param array $args
2323
*/
2424
public function initialize($args) {
25-
parent::initialize($args);
25+
$this->init($args);
2626

2727
// find the column
2828
try {
2929
$this->column = $this->findColumn($this->opt['label']);
3030
} catch(StructException $e) {
3131
msg(hsc($e->getMessage()), -1);
3232
}
33+
34+
$this->standardArgs($args);
3335
}
3436

3537
/**

0 commit comments

Comments
 (0)