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) %]"