summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-16 09:00:53 +0200
committerByron Jones <glob@mozilla.com>2015-07-16 09:00:53 +0200
commitcfaf0d051df5c567c02ec83813fb58514cbf7efd (patch)
tree27d5a4c79e98831b6c9ca90155fc76d687560b60 /extensions/BMO/template
parent3c7af66f8c8a2226d3a968df7fbcdeacb9fe669a (diff)
downloadbugzilla-cfaf0d051df5c567c02ec83813fb58514cbf7efd.tar.gz
bugzilla-cfaf0d051df5c567c02ec83813fb58514cbf7efd.tar.xz
Bug 1184454 - unable to create new products
Diffstat (limited to 'extensions/BMO/template')
-rw-r--r--extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl15
1 files changed, 5 insertions, 10 deletions
diff --git a/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl b/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl
index f91e4052b..d2258eccb 100644
--- a/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl
+++ b/extensions/BMO/template/en/default/hook/admin/products/edit-common-rows.html.tmpl
@@ -9,12 +9,8 @@
[%
group_correct_visibility = {};
FOREACH g = product.group_controls.values;
- IF (g.membercontrol == constants.CONTROLMAPSHOWN)
- && (g.othercontrol == constants.CONTROLMAPSHOWN);
- group_correct_visibility.${g.name} = 1;
- ELSE;
- group_correct_visibility.${g.name} = 0;
- END;
+ group_correct_visibility.${g.name} =
+ (g.membercontrol == constants.CONTROLMAPNA) || (g.othercontrol == constants.CONTROLMAPNA) ? 0 : 1;
END;
%]
@@ -32,13 +28,12 @@
[% END %]
</select>
<span id="security_group_warning" style="color:red; display:none;">
- The chosen security group needs to be set to SHOWN/SHOWN for this product
+ This security group needs to be set to SHOWN/SHOWN
</span>
<script type="text/javascript">
var toggleGroupWarning = function() {
- var correct_shown = $('#security_group_id option:selected')
- .data('group-correct-visibility');
- if (correct_shown) {
+ var correct_shown = $('#security_group_id option:selected').data('group-correct-visibility');
+ if ($('#security_group_id').val() === '' || correct_shown) {
$('#security_group_warning').hide();
}
else {