From ee5b65553593e4a5c9e2b9abe201d17119790002 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 3 Oct 2013 20:03:57 +0200 Subject: [PATCH] Maintain the order of the input alternatives --- src/root/edit-jobset.tt | 2 +- src/root/jobset.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root/edit-jobset.tt b/src/root/edit-jobset.tt index 0cc48c89..c299f60f 100644 --- a/src/root/edit-jobset.tt +++ b/src/root/edit-jobset.tt @@ -18,7 +18,7 @@ [% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %] - [% FOREACH alt IN input.jobsetinputalts %] + [% FOREACH alt IN input.search_related('jobsetinputalts', {}, { order_by => 'altnr' }) %] [% INCLUDE renderJobsetInputAlt alt=alt name="$baseName-values" %] diff --git a/src/root/jobset.tt b/src/root/jobset.tt index 8bffd227..9a45d3cd 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -12,7 +12,7 @@ [% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %] - [% FOREACH alt IN input.jobsetinputalts %] + [% FOREACH alt IN input.search_related('jobsetinputalts', {}, { order_by => 'altnr' }) %] [% IF input.type == "string" %] "[% HTML.escape(alt.value) %]"