From 8884fb08982f2d0480104a6886ca6e405d34a216 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Fri, 9 Oct 2015 22:54:28 +0200 Subject: [PATCH] Saving with checked checkboxes RESCOPED_FROM/TO and BUTTON_TRIGGER was not reflected in GUI #73 #74 --- CHANGELOG.md | 3 +++ src/main/resources/admin.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07e9e935..769f891e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ Changelog of Pull Request Notifier for Bitbucket. +## 2.5 +* Bugfix: Saving with checked checkboxes RESCOPED_FROM/TO and BUTTON_TRIGGER was not reflected in GUI. + ## 2.5 * Bugfix: Avoiding admin page to crash if entering quote as value of a field. diff --git a/src/main/resources/admin.js b/src/main/resources/admin.js index 9d5cbeb5..cb5395da 100644 --- a/src/main/resources/admin.js +++ b/src/main/resources/admin.js @@ -114,7 +114,7 @@ var $template = $(".prnfb-template-"+formType).clone(); $.each(config, function(fieldIndex,field_map) { - var safe_value = field_map.value.replace(/[^a-zA-Z]/g,''); + var safe_value = field_map.value.replace(/[^a-zA-Z\_]/g,''); $('.variable[data-variable="'+field_map.name+'"]', $template).html(field_map.value); $('input[type="text"][name="'+field_map.name+'"]', $template).attr('value', field_map.value); $('input[type="password"][name="'+field_map.name+'"]', $template).attr('value', field_map.value);