User in multi institutions can lose progress bar (Bug #1347362)
If a user is in two (or more) institutions and the first institution has
profile progess set up for it and the other doesn't, the switching of
the select box makes the progress sideblock disappear.
This patch checks that if any institution the user belongs to has
profile progress then display the select box if they belong to two or
more institutions and show either the bar or a message mentioning this
intitution doesn't have progress.
To test:
- user with 1 institution that has progress
- user with 1 institution that has no progress
- user with 2 institution that both have progress
- user with 2 institution where one has progress
- user with 2 institution where none have progress
Change-Id: I4daca26b4b9cfef9faa73be34c34ad931d89465e
Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/3690 gitorious. org/mahara/ mahara/ commit/ 87e031aa43964c8 18302b888617ad5 872001641e
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.9_STABLE
commit 87e031aa43964c8 18302b888617ad5 872001641e
Author: Robert Lyon <email address hidden>
Date: Thu Jul 24 09:02:40 2014 +1200
User in multi institutions can lose progress bar (Bug #1347362)
If a user is in two (or more) institutions and the first institution has
profile progess set up for it and the other doesn't, the switching of
the select box makes the progress sideblock disappear.
This patch checks that if any institution the user belongs to has
profile progress then display the select box if they belong to two or
more institutions and show either the bar or a message mentioning this
intitution doesn't have progress.
To test:
- user with 1 institution that has progress
- user with 1 institution that has no progress
- user with 2 institution that both have progress
- user with 2 institution where one has progress
- user with 2 institution where none have progress
Change-Id: I4daca26b4b9cfe f9faa73be34c34a d931d89465e
Signed-off-by: Robert Lyon <email address hidden>