Skip to content
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

Fixed #08838: The "Access" filter not working if language is not English #178

Merged
merged 1 commit into from
Mar 11, 2014
Merged

Conversation

lemeur
Copy link
Collaborator

@lemeur lemeur commented Mar 11, 2014

No description provided.

<option value='Open'><?php $clang->eT("Open") ?></option>
<option value='Closed'><?php $clang->eT("Closed") ?></option>
<option value='<?php $clang->eT("Open","js") ?>'><?php $clang->eT("Open") ?></option>
<option value='<?php $clang->eT("Closed","js") ?>'><?php $clang->eT("Closed") ?></option>
</select>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Thibault,

Quoting the value as JS value causes problems as it is no JS where the value is placed, the standard eT call quotes as HTML which is already fine.
However in the case where the option text and value are the same you can just leave out the value and the option text will be automatically used as value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carsten,

Are you sure the html formatting will encode single-quote ? it was not the case in the past, but I may have missed something.

Anyway you're right, the best option is to replace

option value='eT("Open","js") ?>'>eT("Open") ?></option
by
option>eT("Open") ?></option

I will update the patch

@lemeur
Copy link
Collaborator Author

lemeur commented Mar 11, 2014

Here is the new patch... I'm using this bug to try to figure out how to use git.... ;-)

c-schmitz added a commit that referenced this pull request Mar 11, 2014
Fixed #08838: The "Access" filter not working if language is not English
@c-schmitz c-schmitz merged commit 865e2f6 into LimeSurvey:master Mar 11, 2014
@c-schmitz
Copy link
Contributor

Hehe, sure, looks fine- thank you!

@lemeur lemeur deleted the bug8838 branch March 11, 2014 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants