-
Notifications
You must be signed in to change notification settings - Fork 49
Repeated epc:pin with same name are not replaced correctly #424
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
Comments
Seems strange, (Note to self: |
@drn05r - your post to the EP-Tech list last night reminded me of this. Wasn't sure if this needs Issue creating in 3.4 too? |
On 3.4 this still seems to be present but only in some scenarios. If the phrase is in an archive level phrases file then it seems to work fine. However, when the phrase is elsewhere, in my case where it is part of a 3.4 ingredient the pin becomes empty after its first use. I am unsure why this is. I hope to make a deeper investigation on 3.4 later this afternoon. |
I have applied the following patch to 3.4 to 'fix' this. However, I am unsure whether it will have unintended consequences:
|
Uh oh!
There was an error while loading. Please reload this page.
Background:
phrase file with an epp:phrase with multiple epc:pin that have the same name value.
A static page (.xpage) or a template with
<epc:phrase ref="somephrase"><epc:param name="pinname">some pin value</epc:param></epc:phrase>
only replaces the first pin, the remaining pins lead to an empty value.
The same is true for
$session->html_phrase( "somephrase", pinname => $session->make_text( "some pin value"))
The text was updated successfully, but these errors were encountered: