-
Notifications
You must be signed in to change notification settings - Fork 645
Open
Labels
Description
Found while upgrading to 0.8.14
Our broadcast of error messages does not work any more.
I leave formname undefined and specify a validity as true or false.
$scope.$broadcast('schemaForm.error.' + fieldCode, 'payrollValidation', element.message, isValid)
The following line overwrites the given formname and assigns it the validity (bool) value.
formName = validity; |
Later on the formname is checked and if it does not match (which it doesn't because is it true|false) the method returns and does nothing.
if (formName != undefined && scope.ngModel.$$parentForm.$name !== formName) { |
Is this a bug or am I using it wrong?