File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
modules/os2forms_nemid/src/Element Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111
1212## [ Unreleased]
1313
14+ - CprFetchData adding ajax error fix
15+
1416## [ 3.14.0]
1517
1618- [ OS-64] Setting a standard value for Automatic purge [ #80 ] ( https://github.com/OS2Forms/os2forms/pull/80 )
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ class NemidCprFetchData extends CompositeFetchDataBase {
1515 public static function getCompositeElements (array $ element ) {
1616 $ elements = parent ::getCompositeElements ($ element );
1717
18- // Pattern for CPR.
19- $ elements [self ::getValueElementName ()]['#pattern ' ] = '\d{6}(-)?\d{4} ' ;
18+ if ($ element ) {
19+ // Pattern for CPR.
20+ $ elements [static ::getValueElementName ()]['#pattern ' ] = '\d{6}(-)?\d{4} ' ;
21+ }
2022
2123 return $ elements ;
2224 }
You can’t perform that action at this time.
0 commit comments