-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken commit in #15040 that accidentally reverted previous changes.
- Loading branch information
gwharton
committed
Jul 6, 2018
1 parent
b33721c
commit a012c45
Showing
1 changed file
with
10 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a012c45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is setting "showCaption" but fotorama.js is expecting "captions".
a012c45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is my understanding of the fotorama code that the function isExpectedCaption is called to determine whether the caption should be shown or not. This function has the contents of showCaption passed as the 2nd parameter. If showCaption is set to false, then the function always returns false. If showCaption is true, then it will return true aslong as captions is also set to true, which it is by default.
I dont claim to understand the difference between showCaption and captions and why there are two options, but the logic would suggest, that as both are set true by default, that setting either or both to false would result in the caption not being displayed and setting both to true, or not specifying either would result in the caption being displayed.
a012c45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We upgraded from 2.2.4 to 2.2.7 this change is not there. Still same old issue we are facing. Here is the code from Gallery.phtml