From 96732b80ee49d9934ee38afe91b4c328ece17825 Mon Sep 17 00:00:00 2001 From: Ramkrishna Chakrabarty Date: Tue, 15 Feb 2011 13:38:22 -0500 Subject: [PATCH] Bug fix: when no library is associated with the sample link to display datasets is disabled. --- templates/requests/common/common.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/requests/common/common.mako b/templates/requests/common/common.mako index 23680688089..ba35149f2ae 100644 --- a/templates/requests/common/common.mako +++ b/templates/requests/common/common.mako @@ -479,10 +479,10 @@ %if is_submitted or is_complete: ## 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. ${len( sample.datasets )} - %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. ${len( sample.datasets )}