Description:
When updating the custom fields of an issue the window does not automatically close upon save.
If "automatically close confirmation popups" is set to yes, the page behaves as it if was set to no.
How to repeat:
Set user preferences to automatically close confirmation popups
View an Issue
Click update under custom fields
Click save
Note a "Close" link will be displayed and the window does not close
Suggested fix:
The problem is the "current_user_prefs" array is not being sent to the template in /custom_fields.php. Thus, the template doesn't know what to do and defaults to the remain open state.
The fix is to populate the "current_user_prefs" smarty varible by inserting the line below into /custom_fields.php near the end, before line 53 that contains $tpl->displayTemplate();
$tpl->assign("current_user_prefs", Prefs::get(Auth::getUserID()));
Description: When updating the custom fields of an issue the window does not automatically close upon save. If "automatically close confirmation popups" is set to yes, the page behaves as it if was set to no. How to repeat: Set user preferences to automatically close confirmation popups View an Issue Click update under custom fields Click save Note a "Close" link will be displayed and the window does not close Suggested fix: The problem is the "current_user_prefs" array is not being sent to the template in /custom_fields.php. Thus, the template doesn't know what to do and defaults to the remain open state. The fix is to populate the "current_user_prefs" smarty varible by inserting the line below into /custom_fields.php near the end, before line 53 that contains $tpl->displayTemplate(); $tpl->assign("current_user_prefs", Prefs::get(Auth::getUserID()));