commit/galaxy-central: rc: Bug fix: when no library is associated with the sample link to display datasets is disabled.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/cbc9182db377/ changeset: r5061:cbc9182db377 user: rc date: 2011-02-15 19:38:22 summary: Bug fix: when no library is associated with the sample link to display datasets is disabled. affected #: 1 file (38 bytes) --- a/templates/requests/common/common.mako Mon Feb 14 19:40:40 2011 -0500 +++ b/templates/requests/common/common.mako Tue Feb 15 13:38:22 2011 -0500 @@ -479,10 +479,10 @@ %if is_submitted or is_complete: <td> ## An admin can select the datasets to transfer, while a non-admin can only view what has been selected - %if is_admin: + %if sample.library and is_admin: ## This link will direct the admin to a page allowing them to manage datasets. <a id="sampleDatasets-${sample.id}" href="${h.url_for( controller='requests_admin', action='manage_datasets', cntrller=cntrller, sample_id=trans.security.encode_id( sample.id ) )}">${len( sample.datasets )}</a> - %elif sample.datasets: + %elif sample.library and sample.datasets: ## Since this is a regular user, only display a link if there is at least 1 ## selected dataset for the sample. <a id="sampleDatasets-${sample.id}" href="${h.url_for( controller='requests_common', action='view_sample_datasets', cntrller=cntrller, sample_id=trans.security.encode_id( sample.id ) )}">${len( sample.datasets )}</a> 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