There is some info in the Contributors Best Practices document (this is the doc for anyone who wants to contribute, mostly through Jira, etc):
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices -David On Oct 20, 2007, at 11:17 AM, [EMAIL PROTECTED] wrote:
Can someone tell me the svn command to create a patch? If so, I'll submitit today. Skip -----Original Message----- From: Jacques Le Roux [mailto:[EMAIL PROTECTED] Sent: Saturday, October 20, 2007 5:26 AM To: [email protected] Subject: Re: Bug in add party notes Hi Skip, De : "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>Log into webtools. Click on Party tab. Click on "Find..." at the bottom[noteId,DemoNote1(java.lang.String)][partyId,DemoCustCompany (java.lang.Strinwith all the fields blank. Select "DemoCustCompany" [Details] At the very bottom of the page, click "Create New" in the notes area.In the next screen, enter a noteId and note and click save at the bottom.You get this error: ...g)] ... INSERT on table 'PARTY_NOTE' caused a violation of foreign keyorg.ofbiz.party.party.PartyServices.createPartyNote (PartyServices.java:631)constraint 'PARTY_NOTE_NOTE' for key (DemoNote1). ....If you look at the code referenced, you will note that if the "Note Id" field is left blank, the NoteData entry is created and everything worksfine.It is my view that createPartyNote() should be modified to check to see ifthe NoteData exists if a noteId is passed and if not, one should becreatedor else the Note id field should be removed from (or passed as hidden) thenote creation screen.Yes I agree, this is a solutionI don't actually understand why the user would be asked to enter a noteIdanyway.Maybe to allow user to set itself his/her notes number for recall later ?But then it should not be a primary key (which should begenerated) or it should be checked in code (as for Product for instance)I can fix this and submit a patch, but I wanted to be sure I wasn'tmissingsomething.Please feel free to submit a patch Thanks JacquesSkip
smime.p7s
Description: S/MIME cryptographic signature
