Project

General

Profile

Development problem: issue field, similiar to 'Version' field

Added by Piotr Grondziowski about 4 years ago

Hi!
I've written a plugin, which adds a combo-box field to issue and a tab to project's settings, where values can be edited. It works just like 'Version' or 'Category' field.
Recently, based on Redmine code, I've added a 'plus' button to the field, to have the same functionality, like 'Version' field: adding new value during issue editing. 'New field value' window appears, new value is added to database table after filling fields and pushing 'Create', but the combo-box is not refreshed. I have to refresh whole page to see new value in drop-down.
I know, I have to do something more in my code, but I don't know what. Can you guide me, where to search?

It is not environment dependent question, but:
Environment:
Redmine version 3.2.1.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.6
Environment production
Database adapter PostgreSQL


Replies (1)

RE: Development problem: issue field, similiar to 'Version' field - Added by Piotr Grondziowski about 4 years ago

I've solved it: wrong combo-box id in Ajax reply (app\views\...\create.js.erb).

    (1-1/1)