Skip to content

Broadcast schemaform.error.* broken #993

Description

@pvbrakel

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.

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions