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

Fix subjects/divisions being displayed in all languages after upgrade to 3.3.13 #306

Merged
merged 1 commit into from Apr 15, 2015
Merged

Conversation

@drtjmb
Copy link
Member

@drtjmb drtjmb commented Apr 14, 2015

This should fix #295 - apply the changes and regenerate subject/division view menus.

@sebastfr
Copy link

@sebastfr sebastfr commented Apr 15, 2015

you added a "if( false )" statement in Multilang ;-)

@drtjmb
Copy link
Member Author

@drtjmb drtjmb commented Apr 15, 2015

I know 😉

On 15 Apr 2015 9:01 am, Sébastien François notifications@github.com wrote:

you added a "if( false )" statement in Multilang ;-)


Reply to this email directly or view it on GitHubhttps://github.com//pull/306#issuecomment-93251463.

@patrickmcsweeney
Copy link
Contributor

@patrickmcsweeney patrickmcsweeney commented Apr 15, 2015

Yeah I dont get that... Why not just remove the condition and the else
statement entirely?

On Wed, Apr 15, 2015 at 9:22 AM, Timothy Miles-Board <
notifications@github.com> wrote:

I know [image: 😉]

On 15 Apr 2015 9:01 am, Sébastien François notifications@github.com
wrote:

you added a "if( false )" statement in Multilang ;-)


Reply to this email directly or view it on GitHub<
https://github.com/eprints/eprints/pull/306#issuecomment-93251463>.


Reply to this email directly or view it on GitHub
#306 (comment).

'But your intentions are beside the point, It's the outcome of your actions
that count...'

@jiadiyao
Copy link
Contributor

@jiadiyao jiadiyao commented Apr 15, 2015

Tim, I thought about this very fix before, but this means that render value for multilang would always render the first sub item (which may not be the item you want to render). Maybe this is ok because I cannot think of any other simple solutions!

jiadiyao added a commit that referenced this issue Apr 15, 2015
Fix subjects/divisions being displayed in all languages after upgrade to 3.3.13
@jiadiyao jiadiyao merged commit 04a2972 into eprints:3.3 Apr 15, 2015
@drtjmb
Copy link
Member Author

@drtjmb drtjmb commented Apr 15, 2015

The choice seemed to be between doing something sensible (rendering the name part in the appropriate language) and rendering a grim looking table. I suggest the former be the default behaviour - remove the if(false) I added and just do the default - if someone wants to do something different they should just use the render_value property to override (and hopefully produce something a bit less grim :-)

Tim

On 15 Apr 2015 11:38 am, Jiadi Yao notifications@github.com wrote:

Tim, I thought about this very fix before, but this means that render value for multilang would always render the first sub item (which may not be the item you want to render). Maybe this is ok because I cannot think of any other alternative solution!


Reply to this email directly or view it on GitHubhttps://github.com//pull/306#issuecomment-93316051.

@drtjmb
Copy link
Member Author

@drtjmb drtjmb commented Apr 15, 2015

@patrickmcsweeney - its a pull request, I wanted one of the core team to make that decision and modify it accordingly (I was just showing my working ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

4 participants