Last Comment Bug 721367 - Custom field tables should exist when object_end_of_create hook is processing
: Custom field tables should exist when object_end_of_create hook is processing
Status: UNCONFIRMED
:
Product: Bugzilla
Classification: Server Software
Component: Bugzilla-General (show other bugs)
: 4.2
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: default-qa
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-26 06:20 PST by rojanu
Modified: 2012-01-26 06:20 PST (History)
0 users
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description rojanu 2012-01-26 06:20:09 PST
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Build ID: 20111220165912

Steps to reproduce:

Added a new column to Bugzilla::Field::Choice via object_columns hook and then when a new custom field is created say cf_hey, of type FIELD_TYPE_SINGLE_SELECT and FIELD_TYPE_MULTI_SELECT, add a new column to table cf_hey using object_end_of_create hook


Actual results:

Bugzilla throws a software error
DBD::mysql::db do failed: Table 'test.cf_hey' doesn't exist [for Statement "UPDATE cf_hey SET optgroup_id = ?"]


Expected results:

object_end_of_create should have created the cf_hey table

Note You need to log in before you can comment on or make changes to this bug.