← Back to team overview

dhis2-devs team mailing list archive

[Bug 1560104] [NEW] Including both incident and enrollment date in custom form in tracker capture gives error

 

Public bug reported:

Including both incident and enrollment date in custom form in tracker
capture gives an error below in the console.

angular.js:102 SyntaxError: Unexpected token )
    at zf (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:106:167)
    at ib.identifier (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:193:204)
    at ib.fieldAccess (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:198:6)
    at ib.primary (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:191:78)
    at ib.unary (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:197:478)
    at ib.multiplicative (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:197:205)
    at ib.additive (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:197:63)
    at ib.relational (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:196:435)
    at ib.equality (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:196:291)
    at ib.logicalAND (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:196:167) <!-- ngIf: interacted(outerForm.) -->(anonymous function) @ angular.js:102


The above changes the incident date field into a dropdown if specified before the enrollmentDate.
If the incidentDate is inserted after enrollmentDate, it duplicates the enrollmentDate.

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: 2.22

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1560104

Title:
  Including both incident and enrollment date in custom form in tracker
  capture gives error

Status in DHIS:
  New

Bug description:
  Including both incident and enrollment date in custom form in tracker
  capture gives an error below in the console.

  angular.js:102 SyntaxError: Unexpected token )
      at zf (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:106:167)
      at ib.identifier (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:193:204)
      at ib.fieldAccess (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:198:6)
      at ib.primary (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:191:78)
      at ib.unary (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:197:478)
      at ib.multiplicative (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:197:205)
      at ib.additive (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:197:63)
      at ib.relational (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:196:435)
      at ib.equality (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:196:291)
      at ib.logicalAND (https://idsr/idsr/dhis-web-commons/javascripts/angular/angular.js:196:167) <!-- ngIf: interacted(outerForm.) -->(anonymous function) @ angular.js:102

  
  The above changes the incident date field into a dropdown if specified before the enrollmentDate.
  If the incidentDate is inserted after enrollmentDate, it duplicates the enrollmentDate.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1560104/+subscriptions