Bug #8336 Update custom fields not auto closing
Submitted: 5 Feb 2005 22:42 Modified: 7 Feb 2005 21:41
Reporter: Paul Mach Email Updates:
Status: Closed Impact on me:
None 
Category:Eventum Severity:S3 (Non-critical)
Version:1.4 OS:
Assigned to: Bryan Alsdorf CPU Architecture:Any

[5 Feb 2005 22:42] Paul Mach
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()));
[7 Feb 2005 21:41] Bryan Alsdorf
This is now fixed in bitkeeper and will be included in our next release.