Skip to content

Commit

Permalink
BAP-3815: Could not select existing Lead in Sales processes
Browse files Browse the repository at this point in the history
 - CR fixes
  • Loading branch information
yshyshkin committed Mar 31, 2014
1 parent c2bfc91 commit 343adb2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ function ($, _, widgetManager, routing) {
// update mode
var currentMode = getCurrentMode();
var currentRouteParameters = getCurrentRouteParameters();
if (templateMode != currentMode || !_.isEqual(templateRouteParameters, currentRouteParameters)) {
if (templateMode != currentMode
|| currentMode == 'view' && !_.isEqual(templateRouteParameters, currentRouteParameters)
) {
setMode(currentMode);
}
}
Expand Down

0 comments on commit 343adb2

Please sign in to comment.