mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +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:
parent
72ede2843c
commit
b19c78c756
@ -7,6 +7,7 @@
|
|||||||
- More explanations in the setup script
|
- More explanations in the setup script
|
||||||
- Send pre-compressed assets to the browsers instead of the regular ones
|
- 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: 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)
|
- 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] `\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/scripts/nginx-packs-directive.sh | bash`
|
||||||
- [TODO DEPLOY] `rails db:seed`
|
- [TODO DEPLOY] `rails db:seed`
|
||||||
|
@ -665,7 +665,7 @@ Application.Controllers.controller('CreateEventModalController', ['$scope', '$ui
|
|||||||
$scope.selectedPlans = [];
|
$scope.selectedPlans = [];
|
||||||
$scope.selectedPlansBinding = {};
|
$scope.selectedPlansBinding = {};
|
||||||
if (count === 0) {
|
if (count === 0) {
|
||||||
plansPromise.forEach(function (plan) {
|
plansPromise.filter(p => !p.disabled).forEach(function (plan) {
|
||||||
$scope.selectedPlans.push(plan);
|
$scope.selectedPlans.push(plan);
|
||||||
$scope.selectedPlansBinding[plan.id] = true;
|
$scope.selectedPlansBinding[plan.id] = true;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user