Skip to content
Snippets Groups Projects
Commit 0bcc0c0b authored by kaloyane's avatar kaloyane
Browse files

bugfix: relax material code constraints in edit/registration forms

SVN: 23305
parent 3a6f372e
No related branches found
No related tags found
No related merge requests found
...@@ -69,8 +69,8 @@ public class MaterialChooserField extends ChosenEntitySetter<Material> ...@@ -69,8 +69,8 @@ public class MaterialChooserField extends ChosenEntitySetter<Material>
// ------------------ // ------------------
// the pattern used to validate material identifier expression // the pattern used to validate material identifier expression
private final static String CODE_AND_TYPE_PATTERN = CodeField.CODE_CHARS + " " + "\\(" private final static String CODE_AND_TYPE_PATTERN = "^[^\\s]+ \\(" + CodeField.CODE_CHARS
+ CodeField.CODE_CHARS + "\\)"; + "\\)$";
@Override @Override
public String renderEntity(Material materialOrNull) public String renderEntity(Material materialOrNull)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment