From 6e2f1a8520505bccfe6767e7eb630f2ee6637a0d Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 1 Oct 2020 16:02:30 +1000 Subject: [PATCH] fix: maintain latest and tag params when submitting page after following link from can-i-deploy debug logs Closes: https://github.com/pact-foundation/pact_broker/issues/287 --- lib/pact_broker/ui/views/matrix/show.haml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/pact_broker/ui/views/matrix/show.haml b/lib/pact_broker/ui/views/matrix/show.haml index 9becfe846..92086d656 100644 --- a/lib/pact_broker/ui/views/matrix/show.haml +++ b/lib/pact_broker/ui/views/matrix/show.haml @@ -51,6 +51,14 @@ %input{name: 'q[]latest', value: 'true', hidden: true, class: 'latest-flag'} + - if options.latest || options.tag + .selector + %label{for: 'to'} + = options.latest ? 'To' : 'With all' + %input{name: 'tag', id: 'to', value: options.tag } + %input{name: 'latest', value: options.latest.to_s, hidden: true} + + %div.top-of-group .input-group %input{type: 'radio', name: "latestby", class: '', value: '', id: 'all_rows', checked: options.all_rows_checked}