Sugar Open Source 4.5.0h
MySQL 5.0.32
PHP 5.2.0

When I go a Contact's details, and click on the button labeled "Create Note or Attachment", then the short form appears and a note can be created and saved. Everything works correctly.

However, if instead of saving the short note I click on the button labeled "Full Form", then the Full Form appears but the Contact field is populated with the wrong contact.

I have saved the form information below from both the short form (correct) and the full form (contact name and id are incorrect) so that you can see what is happening under the covers.

About two months ago we added some entries to the record_type_display_notes, and then we deleted those entries the same day that these problems started. I'm not sure if this is related.

I tried deleting the files in the cache/smarty/templates_c and also tried rebuilding the various caches through the admin control panel.

Finally, I inserted some notes directly into the database using the mysql uuid() function to generate the id's. I thought maybe this was the cause of the problem, but after deleting these records the problem persists.

Anyone have any ideas? Thanks much!



----------

(Short Notes Form)
Id Name Method Action
notesQuickCreate notesQuickCreate post index.php

Elements
Index Id Name Type Value Label Size Maximum Length State
0 module hidden Notes
1 record hidden
2 lead_id hidden
3 contact_id hidden 2380822c-1a74-6cad-ab47-4810d5b93483
4 contact_name hidden Bob smith
5 email_id hidden
6 account_id hidden 6ff7abe7-424b-94e1-0157-4810d53b1f25
7 account_name hidden Account1
8 opportunity_id hidden
9 acase_id hidden
10 return_action hidden DetailView
11 return_module hidden Contacts
12 return_id hidden 2380822c-1a74-6cad-ab47-4810d5b93483
13 action hidden Save
14 duplicate_parent_id hidden
15 to_pdf hidden 1
16 parent_id hidden 6ff7abe7-424b-94e1-0157-4810d53b1f25
17 parent_type hidden Accounts
18 parent_name hidden Account1
19 assigned_user_id assigned_user_id hidden 1
20 button submit Save
21 button submit Cancel
22 button submit Full Form
23 name textarea
24 description textarea

----------

(Full Notes Form)
Id Name Method Action
UnifiedSearch

Elements
Index Id Name Type Value Label Size Maximum Length State
0 action text UnifiedSearch
1 module text Home
2 search_form text false
3 advanced text false
4 query_string query_string text 20
5 submit Go
Form
Id Name Method Action
EditView post index.php

Elements
Index Id Name Type Value Label Size Maximum Length State
0 module text Notes
1 record text
2 action text
3 form text
4 return_module text Contacts
5 return_id text 2380822c-1a74-6cad-ab47-4810d5b93483
6 return_action text DetailView
7 button submit Save
8 button submit Cancel
9 contact_name text James Jones

Readonly
10 contact_id text 11a4b5d2-e2c9-326c-54ae-4727a6bc9270
11 button button Select
12 parent_type parent_type select
13 parent_id parent_id text
14 parent_name parent_name text
15 change_parent button Select
16 action_c select
17 name text 100 255
18 uploadfile file 60
19 old_filename text
20 old_id text
21 description textarea

----------