From ad4f188ef6eee056c4e18bb07f96bb821fe83d82 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 13 Jun 2016 18:19:46 +0100 Subject: [PATCH] Bug 16724: Fix link to the online documentation links MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since the numbering changes, the online doc links are broken. Test plan: Make sure the online doc links work on the help pages. Signed-off-by: Mirko Tietgen Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall (cherry picked from commit 27de2ece61f68c60602eec1a179be9e19b0bdd46) Signed-off-by: Frédéric Demians --- help.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/help.pl b/help.pl index b8122085b2..ad86a2da29 100755 --- a/help.pl +++ b/help.pl @@ -69,7 +69,8 @@ my $help_version = C4::Context->preference("Version"); if ( $help_version =~ m|^(\d+)\.(\d{2}).*$| ) { my $version = $1; my $major = $2; - if ( $major % 2 ) { $major-- }; + unless ( $major % 2 ) { $major-- }; + $major = sprintf("%02d", $major); $help_version = "$version.$major"; } $template->param( helpVersion => $help_version ); -- 2.39.5