Skip to content

Commit

Permalink
Feature #12713: displaying menu add to basket only if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverYoCha committed Jun 27, 2022
1 parent 58109f8 commit e1d978d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -84,13 +84,13 @@ public static String getPutIntoBasketSelectionHtmlSnippet(final String callback,
}

/**
* Permits to handle the display of the shortcut to put fastly elements into basket selection.
* Allows to handle the display of the shortcut to put quickly elements into basket selection.
* <p>
* This condition is computed one time only per session, at first method access.
* </p>
* @return true if it can be displayed, false otherwise.
*/
private static boolean displayPutIntoBasketSelectionShortcut() {
public static boolean displayPutIntoBasketSelectionShortcut() {
final SimpleCache cache = CacheServiceProvider.getSessionCacheService().getCache();
final String key = "displayPutIntoBasketSelectionShortcut@" + User.getCurrentUser().getId();
return cache.computeIfAbsent(key, Boolean.class,
Expand Down

0 comments on commit e1d978d

Please sign in to comment.