id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
9953,Changing a testcase custom field value gives and error,vnemes,seccanj,Hello_\r\nEvery time I try to modify the value of a custom field_ I get a popup with the following error message:\r\n\r\n{{{\r\nAn error occurred performing the operation.\r\n\r\nPlease try again. \r\n}}}\r\nThe thing is_ if I reload the page_ the change is done and it appears in the changes history_ despite the error message.\r\n\r\nIf i put a breakpoint with Firebug in testmanager.js/doAjaxCall() that is called from testmanager.js/sendUpdate() and look at the return value_ it is:\r\n\r\n{{{\r\n"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> </html>"\r\n}}}\r\n\r\nThe expected value should be "OK"_ otherwise an error is generated\r\n\r\nThe trac log shows the following:\r\n\r\n{{{\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: Provider for realm testcase is <testmanager.model.TestManagerModelProvider object at 0x02DFE5B0>\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: Object key is {u'id': u'8'}\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: >>> create_instance - testcase {u'id': u'8'}\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: Title: None\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: Description: None\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: >>> get_fields\r\n2012-04-10 17:55:41_707 Trac[model] DEBUG: <<< get_fields\r\n2012-04-10 17:55:41_709 Trac[model] DEBUG: >>> _fetch_object\r\n2012-04-10 17:55:41_709 Trac[model] DEBUG: Searching for testcase: WHERE 1=1 AND id=%%s\r\n2012-04-10 17:55:41_709 Trac[model] DEBUG: id = 8\r\n2012-04-10 17:55:41_709 Trac[model] DEBUG: Object found.\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: Title: testcase7\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: <<< _fetch_object\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: Exists: True\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: {u'testcaseproperty1': u'Default value'_ u'testcaseproperty': u'Default value'_ 'page_name': u'TC_TT0_TT1_TC8'_ 'id': u'8'}\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: <<< create_instance\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: Value before: Default value\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: Changing field value.\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: Value after: modified\r\n2012-04-10 17:55:41_710 Trac[model] DEBUG: >>> save_changes\r\n2012-04-10 17:55:41_721 Trac[model] DEBUG: <<< save_changes\r\n}}}\r\n\r\n----\r\nMy environment is:\r\ntrac 0.12\r\nmod_wsgi\r\npython 2.7\r\ntracgenericclass-1.1.2-py2.7.egg\r\ntracgenericworkflow-1.0.3-py2.7.egg\r\ntestmanager-1.4.10-py2.7.egg\r\n\r\nI have added this 2 custom testcase fields in trac.ini:\r\n{{{\r\n[testcase-tm_custom]\r\ntestcaseproperty = text\r\ntestcaseproperty.value = Default value\r\ntestcaseproperty1 = text\r\ntestcaseproperty1.value = Default value\r\n}}}\r\nI'm using Firefox 11 + Firebug,defect,closed,normal,TestManagerForTracPlugin,normal,fixed,,,0.12
