-
-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
intl
is not passed to the initialValue
function
#6529
Comments
Hey, @wesleybl Can I work on this issue? |
@Ratangulati please read and follow First-time contributors, especially Things not to do, Contributing to Plone, and Contributing to Volto. |
Hi @Ratangulati! I'm already working on it. Thanks for your interest! |
@wesleybl do you have permission to self-assign issues in this repo? If not, I can grant you that permission. I just assigned you to this one, since you claimed it. Please let me know. Thank you! |
@stevepiercy Yes I have permission. Sorry for not doing this sooner. I will make a PR soon. |
Okay 👍 |
Describe the bug
The documentation says that
initialValue
recives the variableintl
. See:https://github.com/plone/volto/blob/03b30f9817d0883f27b82bf789f6a6225b1aaec3/docs/source/blocks/settings.md#initialvalue
But when printing the
intl
variable inside theinitialValue
function, it received anundefined
.To Reproduce
Steps to reproduce the behavior:
initialValue
setting. For example:undefined
.Expected behavior
The
int
variable must have the internationalization object.Software (please complete the following information):
OS: Ubuntu
Volto 18.2.3
Plone 6.0.13
plone.restapi 9.7.2
CMF 3.5
Zope 5.10
Python 3.11.9 (main, Sep 4 2024, 23:13:27) [GCC 10.2.1 20210110]
PIL 9.5.0 (Pillow)
Additional context
Note that
initialValue
does not actually receiveintl
:volto/packages/volto/src/helpers/Blocks/Blocks.js
Lines 216 to 220 in dd35efb
The text was updated successfully, but these errors were encountered: