Commit 35eca971 authored by Nigel McNie's avatar Nigel McNie
Browse files

Correct the regular expression testing that the artefactchooser returned an integer

parent 300e9dcc
......@@ -70,7 +70,7 @@ function pieform_element_artefactchooser_get_value(Pieform $form, $element) {
return null;
}
if (preg_match('/^(\d+)*)$/', $value)) {
if (preg_match('/^\d+$/', $value)) {
return intval($value);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment