Skip to content

Commit

Permalink
LIMS-1256: Remove validation from Local Contact field (#756)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Williams <[email protected]>
  • Loading branch information
ndg63276 and Mark Williams authored Apr 22, 2024
1 parent 7c774b9 commit 2d23854
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions client/src/js/modules/shipment/models/dispatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ define(['backbone'], function(Backbone) {
pattern: 'visit',
},

LOCALCONTACT: {
required: false,
pattern: 'wwsddash'
},



GIVENNAME: {
required: true,
pattern: 'wwdash',
Expand Down
2 changes: 0 additions & 2 deletions client/src/js/utils/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ define(['backbone', 'backbone-validation'], function(Backbone) {

_.extend(Backbone.Validation.patterns, {
wwsdash: /^(\w|\s|\-)+$/,
wwsddash: /^(\w|\s|\-|\.)+$/,
wwsldash: /^(\w|\s|\-|\/)+$/,
wwsbdash: /^(\w|\s|\-|\(|\))+$/,
wwsbddash: /^(\w|\s|\-|\.|\(|\))+$/,
Expand All @@ -26,7 +25,6 @@ define(['backbone', 'backbone-validation'], function(Backbone) {
_.extend(Backbone.Validation.messages, {
required: 'This field is required',
wwsdash: 'This field must contain only letters, numbers, spaces, underscores, and dashes',
wwsddash: 'This field must contain only letters, numbers, spaces, underscores, dots, and dashes',
wwsldash: 'This field must contain only letters, numbers, spaces, underscores, slashes, and dashes',
wwsbdash: 'This field must contain only letters, numbers, spaces, underscores, brackets, and dashes',
wwsbddash: 'This field must contain only letters, numbers, spaces, underscores, dots, brackets, and dashes',
Expand Down

0 comments on commit 2d23854

Please sign in to comment.