commit/galaxy-central: greg: Fix bug I introduced when I made changes to eliminate the User Type select field if no real options exist because there are no required form definitions.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/e13fb2823aa4/ changeset: e13fb2823aa4 user: greg date: 2011-11-03 14:47:29 summary: Fix bug I introduced when I made changes to eliminate the User Type select field if no real options exist because there are no required form definitions. affected #: 2 files diff -r d04c852fd26a9792c5431da32072bbb62b07530e -r e13fb2823aa4cbd835de79c89f53feca37ab7969 templates/user/register.mako --- a/templates/user/register.mako +++ b/templates/user/register.mako @@ -65,7 +65,7 @@ ${subscribe_check_box.get_html()} </div> %endif - %if len( user_type_fd_id_select_field.options ) > 1: + %if user_type_fd_id_select_field and len( user_type_fd_id_select_field.options ) > 1: <div class="form-row"><label>User type</label> ${user_type_fd_id_select_field.get_html()} diff -r d04c852fd26a9792c5431da32072bbb62b07530e -r e13fb2823aa4cbd835de79c89f53feca37ab7969 templates/webapps/galaxy/user/info.mako --- a/templates/webapps/galaxy/user/info.mako +++ b/templates/webapps/galaxy/user/info.mako @@ -13,7 +13,7 @@ <div class="toolForm"><form name="user_info" id="user_info" action="${h.url_for( controller='user', action='edit_info', cntrller=cntrller, user_id=trans.security.encode_id( user.id ) )}" method="post" ><div class="toolFormTitle">User information</div> - %if len( user_type_fd_id_select_field.options ) > 1: + %if user_type_fd_id_select_field and len( user_type_fd_id_select_field.options ) > 1: <div class="form-row"><label>User type:</label> ${user_type_fd_id_select_field.get_html()} Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket