Hello,
On 05/11/2012 12:23 PM, Darius Jazayeri wrote:
I'd have thought that the sidebar with usage information is only for
viewing the concept, not for editing it...
The UI Design on the ticket had a "Edit Concept" title on it, so I
guessed it would be both for viewing and editing concepts. Also, some
of the metadata (like Questions Answered, etc) that got moved to the
sidebar, I believe was also on the edit page before being moved to the
sidebar. It seems like some of that information may by useful for
taking in to account when you're editing a concept.
I can remove it either for all editing, or when just editing a new
unsaved concept.
-s
-Darius
On Fri, May 11, 2012 at 8:39 AM, Steven Githens <[email protected]
<mailto:[email protected]>> wrote:
This may have appeared in trunk-3044 that I added last week. It
looks like I left off a few Transaction = readonly attributes on
some new methods in ProgramWorkFlowService, but even after adding
them, I'm still seeing this. ( and from Marks comment below, it
appears it's actually coming from an existing ConceptService method. )
I'm wondering if the sidebar with the concept usage information
should just be left out in the JSP conditionally if this is a new
concept, and left in if you're editing an existing concept?
-Steve
On 05/11/2012 10:36 AM, Mark Goodrich wrote:
Fyi, it looks like this is the offending part of the code:
at
org.openmrs.web.controller.ConceptFormController$ConceptFormBackingObject.getNumberOfObsUsingThisConcept(ConceptFormController.java:913)
Assumedly, something within this method call is causing a flush,
and the Concept is transient as this point, because it is new.
It looks like the page is trying to read some statistical data
about a concept, which is really only relevant when
viewing/editing an existing concept.
Mark
*From:*[email protected] <mailto:[email protected]>
[mailto:[email protected]] *On Behalf Of *Ishara Premadasa
*Sent:* Friday, May 11, 2012 10:02 AM
*To:* [email protected]
<mailto:[email protected]>
*Subject:* [OPENMRS-DEV] Exception occurs when trying to create a
new concept
Hi,
I was trying to create a new concept with the latest trunk today
for my gsoc project related work and it throws the following
exception and page is not fully loaded.
An error has occurred!
The following error happened somewhere on this page:
javax.el.ELException: org.hibernate.TransientObjectException:
object references an unsaved transient instance - save the
transient instance before flushing: org.openmrs.Concept
(The full error stack trace output is in the source of this page.)
I have created a ticket for this in
https://tickets.openmrs.org/browse/TRUNK-3345 . Can someone
please have a look and help me?
--
Ishara Premadasa,
Google Summer of Code Intern 2012,
Dept. of Computer Science and Engineering,
University of Moratuwa,
Sri Lanka.
------------------------------------------------------------------------
Click here to unsubscribe
<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l>
from OpenMRS Developers' mailing list
------------------------------------------------------------------------
Click here to unsubscribe
<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l>
from OpenMRS Developers' mailing list
------------------------------------------------------------------------
Click here to unsubscribe
<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l> from
OpenMRS Developers' mailing list
------------------------------------------------------------------------
Click here to unsubscribe
<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l>
from OpenMRS Developers' mailing list
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]