Commit ffa2de36 authored by Ad Schellevis's avatar Ad Schellevis

(IDS) fix validation issue on new entries

parent b5daea15
...@@ -275,7 +275,7 @@ class SettingsController extends ApiControllerBase ...@@ -275,7 +275,7 @@ class SettingsController extends ApiControllerBase
} }
// only update result state if all items until now are ok // only update result state if all items until now are ok
if ($result['status'] != 'error') { if ($result['status'] != 'error') {
$result['status'] = $node->enabled; $result['status'] = (string)$node->enabled;
} }
$update_count++; $update_count++;
} else { } else {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<file type="ArrayField"> <file type="ArrayField">
<filename type="TextField"> <filename type="TextField">
<Required>Y</Required> <Required>Y</Required>
<mask>/^([\t\n\v\f\r 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask> <mask>/^([\t\n\v\f\r\- 0-9a-zA-Z.,_\x{00A0}-\x{FFFF}]){1,255}$/u</mask>
</filename> </filename>
<enabled type="BooleanField"> <enabled type="BooleanField">
<default>0</default> <default>0</default>
......
Markdown is supported
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