From d94ad12f365eeb2eb8ae738694eca36c3f8dd7ee Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 3 Apr 2014 14:15:11 +0200 Subject: [PATCH] Bug 9088: neworderempty should preselect the only fund Content-Type: text/plain; charset=utf-8 If there is only one fund in the select combo (and the fund is mandatory), neworderempty should just select it already. If there are more choices, behavior does not change. This patch implements this change in the template itself. Test plan: With more funds, check if neworderempty does not preselect a fund (at least when adding a line; when you modify, you should see what you had chosen). With one fund, check if it is already selected (add or modify). Toggle the setting of AcqCreateItem and check again. --- .../prog/en/modules/acqui/neworderempty.tt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index 596aa07..e57ea13 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -416,6 +416,9 @@ $(document).ready(function()