Hi,
This is a fix for feature request/bug #21238
Link.
It's about following problem.
Subpanels only!!!
If you create e.g. a task for a contact, the proposed team is not the default team of the user. It's a random team. At least I coudn't identify any logic behind the proposal.
This fix defaults the proposal to the default team of the user, so the proposal isn't random anymore.
How to test:
Open a contact and hit "Create task", "Schedule Meeting" and "Schedule Call".
I'm usually getting 2 different proposals.
How to apply:
Edit EditView2.php in include/EditView/.
Open file and search for function "createFocus" - line 117
replace
withPHP Code://If there is no idea, assume we are creating a new instance
//and call the fill_in_additional_detail_fields where initialization
//code has been moved to
if(empty($this->focus->id)) {
global $current_user;
$this->focus->fill_in_additional_detail_fields();
$this->focus->assigned_user_id = $current_user->id;
}
PHP Code://If there is no idea, assume we are creating a new instance
//and call the fill_in_additional_detail_fields where initialization
//code has been moved to
if(empty($this->focus->id)) {
global $current_user;
$this->focus->fill_in_additional_detail_fields();
$this->focus->assigned_user_id = $current_user->id;
// SugarBug 21238
$this->focus->team_id = $current_user->default_team;
$this->focus->team_name = $current_user->default_team_name;
}
This fix is currently running on a dev.system for 2 days. It's going to a productive system on Monday, 5th.
I will update this thread if there are any issue.
Cheers
Tko


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks