From 81a36fdd8e93dcf4148dfa40427f69c77dafa154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Gangs=C3=B6?= <13980324+jgangso@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:22:51 +0200 Subject: [PATCH] Fix argument parsing on meteoblue macro The iframe URL was wrongly constructed without ampersands and meteoblue_flag values were not correctly parsed. --- lib/additionals/wiki_macros/meteoblue_macro.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/additionals/wiki_macros/meteoblue_macro.rb b/lib/additionals/wiki_macros/meteoblue_macro.rb index 2d7e8bb7..bf825822 100644 --- a/lib/additionals/wiki_macros/meteoblue_macro.rb +++ b/lib/additionals/wiki_macros/meteoblue_macro.rb @@ -97,9 +97,9 @@ module MeteoblueMacro end end - def self.meteoblue_flag(options, name, default = tue) - flag = "#{name}=" - flag << if RedminePluginKit.true?(options[name]) || default + def self.meteoblue_flag(options, name, default = true) + flag = "&#{name}=" + flag << if RedminePluginKit.true? options[name] || default '1' else '0'