1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] select all plans for slot restriction

When using the 'select all' button, to restrict an availbility to subscribers, all plans are selected, even those disabled
This commit is contained in:
Sylvain 2021-03-22 10:36:41 +01:00
parent 72ede2843c
commit b19c78c756
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- More explanations in the setup script
- Send pre-compressed assets to the browsers instead of the regular ones
- Fix a bug: subscriptions tab is selected by default in statistics, even if the module is disabled
- Fix a bug: select all plans for slot restriction (through the dedicated button) also selects the disabled plans
- Fix a security issue: updated elliptic to 6.5.4 to fix [CVE-2020-28498](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28498)
- [TODO DEPLOY] `\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/nginx-packs-directive.sh | bash`
- [TODO DEPLOY] `rails db:seed`

View File

@ -665,7 +665,7 @@ Application.Controllers.controller('CreateEventModalController', ['$scope', '$ui
$scope.selectedPlans = [];
$scope.selectedPlansBinding = {};
if (count === 0) {
plansPromise.forEach(function (plan) {
plansPromise.filter(p => !p.disabled).forEach(function (plan) {
$scope.selectedPlans.push(plan);
$scope.selectedPlansBinding[plan.id] = true;
});