File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,9 @@ component accessors="true" serialize="false" singleton {
387387 */
388388 struct function getSharedConstraints ( string name ){
389389 return (
390- structKeyExists ( arguments , " name" ) ? variables .sharedConstraints [ arguments .name ] : variables .sharedConstraints
390+ structKeyExists ( arguments , " name" ) && ! isNull ( arguments .name ) ? variables .sharedConstraints [
391+ arguments .name
392+ ] : variables .sharedConstraints
391393 );
392394 }
393395
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ component accessors="true" {
247247 array function getAllErrors ( string field ){
248248 var errorTarget = variables .errors ;
249249
250- if ( structKeyExists ( arguments , " field" ) ) {
250+ if ( structKeyExists ( arguments , " field" ) && ! isNull ( arguments . field ) ) {
251251 errorTarget = getFieldErrors ( arguments .field );
252252 }
253253
@@ -266,7 +266,7 @@ component accessors="true" {
266266 var errorTarget = variables .errors ;
267267
268268 // filter by field?
269- if ( structKeyExists ( arguments , " field" ) ) {
269+ if ( structKeyExists ( arguments , " field" ) && ! isNull ( arguments . field ) ) {
270270 errorTarget = getFieldErrors ( arguments .field );
271271 }
272272
You can’t perform that action at this time.
0 commit comments