dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35362
Re: [Bug 1415032] [NEW] event-capture - can only add one event
Thank you for reporting Olav. I have reproduced the bug and fix is on the
way.
---
Thank you,
Abyot.
On Tue, Jan 27, 2015 at 2:28 PM, Olav P <1415032@xxxxxxxxxxxxxxxxxx>
wrote:
> Public bug reported:
>
> Event capture in 2.18 only allows you to add one event. After saving one
> event, any event added later (including after going back to the event
> list) will be blocked because the form is invalid ("Form is invalid.
> Please check for required fields.")
>
> Discovered this from a 2.18 build from this morning, confirmed the issue
> with the Inpatient program on /demo.
>
> This error appears in the console:
> TypeError: Cannot read property '$dirty' of undefined
> at k.$scope.isFormInvalid (controllers.js:804)
> at Object.fb.functionCall [as get] (angular.js:177)
> at k.$get.k.$digest (angular.js:109)
> at k.$get.k.$apply (angular.js:112)
> at HTMLInputElement.n (angular.js:137)
> at HTMLInputElement.p.event.dispatch (jquery.min.js:2)
> at HTMLInputElement.p.event.add.g.handle.h (jquery.min.js:2)
> at Object.p.event.trigger (jquery.min.js:2)
> at HTMLInputElement.<anonymous> (jquery.min.js:2)
> at Function.p.extend.each (jquery.min.js:2)angular.js:92 (anonymous
> function)angular.js:68 $getangular.js:110 $get.k.$digestangular.js:112
> $get.k.$applyangular.js:137 njquery.min.js:2
> p.event.dispatchjquery.min.js:2 p.event.add.g.handle.hjquery.min.js:2
> p.event.triggerjquery.min.js:2 (anonymous function)jquery.min.js:2
> p.extend.eachjquery.min.js:2 p.fn.p.eachjquery.min.js:2
> p.fn.extend.triggerjquery.min.js:2 p.each.p.fn.(anonymous
> function)directives.js:534
> link.element.calendarsPicker.onSelectjquery.calendars.picker.min.js:6
> $.extend._updateInputjquery.calendars.picker.min.js:6
> $.extend._selectDatePluginjquery.calendars.picker.min.js:6 (anonymous
> function)jquery.min.js:2 p.event.dispatchjquery.min.js:2
> p.event.add.g.handle.h
>
> ** Affects: dhis2
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1415032
>
> Title:
> event-capture - can only add one event
>
> Status in DHIS 2:
> New
>
> Bug description:
> Event capture in 2.18 only allows you to add one event. After saving
> one event, any event added later (including after going back to the
> event list) will be blocked because the form is invalid ("Form is
> invalid. Please check for required fields.")
>
> Discovered this from a 2.18 build from this morning, confirmed the
> issue with the Inpatient program on /demo.
>
> This error appears in the console:
> TypeError: Cannot read property '$dirty' of undefined
> at k.$scope.isFormInvalid (controllers.js:804)
> at Object.fb.functionCall [as get] (angular.js:177)
> at k.$get.k.$digest (angular.js:109)
> at k.$get.k.$apply (angular.js:112)
> at HTMLInputElement.n (angular.js:137)
> at HTMLInputElement.p.event.dispatch (jquery.min.js:2)
> at HTMLInputElement.p.event.add.g.handle.h (jquery.min.js:2)
> at Object.p.event.trigger (jquery.min.js:2)
> at HTMLInputElement.<anonymous> (jquery.min.js:2)
> at Function.p.extend.each (jquery.min.js:2)angular.js:92 (anonymous
> function)angular.js:68 $getangular.js:110 $get.k.$digestangular.js:112
> $get.k.$applyangular.js:137 njquery.min.js:2
> p.event.dispatchjquery.min.js:2 p.event.add.g.handle.hjquery.min.js:2
> p.event.triggerjquery.min.js:2 (anonymous function)jquery.min.js:2
> p.extend.eachjquery.min.js:2 p.fn.p.eachjquery.min.js:2
> p.fn.extend.triggerjquery.min.js:2 p.each.p.fn.(anonymous
> function)directives.js:534
> link.element.calendarsPicker.onSelectjquery.calendars.picker.min.js:6
> $.extend._updateInputjquery.calendars.picker.min.js:6
> $.extend._selectDatePluginjquery.calendars.picker.min.js:6 (anonymous
> function)jquery.min.js:2 p.event.dispatchjquery.min.js:2
> p.event.add.g.handle.h
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1415032/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1415032
Title:
event-capture - can only add one event
Status in DHIS 2:
New
Bug description:
Event capture in 2.18 only allows you to add one event. After saving
one event, any event added later (including after going back to the
event list) will be blocked because the form is invalid ("Form is
invalid. Please check for required fields.")
Discovered this from a 2.18 build from this morning, confirmed the
issue with the Inpatient program on /demo.
This error appears in the console:
TypeError: Cannot read property '$dirty' of undefined
at k.$scope.isFormInvalid (controllers.js:804)
at Object.fb.functionCall [as get] (angular.js:177)
at k.$get.k.$digest (angular.js:109)
at k.$get.k.$apply (angular.js:112)
at HTMLInputElement.n (angular.js:137)
at HTMLInputElement.p.event.dispatch (jquery.min.js:2)
at HTMLInputElement.p.event.add.g.handle.h (jquery.min.js:2)
at Object.p.event.trigger (jquery.min.js:2)
at HTMLInputElement.<anonymous> (jquery.min.js:2)
at Function.p.extend.each (jquery.min.js:2)angular.js:92 (anonymous function)angular.js:68 $getangular.js:110 $get.k.$digestangular.js:112 $get.k.$applyangular.js:137 njquery.min.js:2 p.event.dispatchjquery.min.js:2 p.event.add.g.handle.hjquery.min.js:2 p.event.triggerjquery.min.js:2 (anonymous function)jquery.min.js:2 p.extend.eachjquery.min.js:2 p.fn.p.eachjquery.min.js:2 p.fn.extend.triggerjquery.min.js:2 p.each.p.fn.(anonymous function)directives.js:534 link.element.calendarsPicker.onSelectjquery.calendars.picker.min.js:6 $.extend._updateInputjquery.calendars.picker.min.js:6 $.extend._selectDatePluginjquery.calendars.picker.min.js:6 (anonymous function)jquery.min.js:2 p.event.dispatchjquery.min.js:2 p.event.add.g.handle.h
To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1415032/+subscriptions
References