Browse Source

UI-3096: Only list groups created with SmartPBX (#61)

When creating groups on SmartPBX, the app automatically generates
baseGroup/userGroup callflows depending on which users are part of the
group. On the other end, the Callflows app only creates a group without
any callflow.
Since SmartPBX is listing all groups, an error was raised when trying to
view the details of group created through the Callflows app since an
associated callflow does not exist.
4.3
Joris Tirado 8 years ago
committed by GitHub
parent
commit
b2f0fc68ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      submodules/groups/groups.js

+ 2
- 1
submodules/groups/groups.js View File

@ -118,7 +118,8 @@ define(function(require) {
});
_.each(mapGroups, function(group) {
arrayGroups.push(group);
// Only list groups created with SmartPBX (e.g. with an associated baseGroup callflow)
group.extra.hasOwnProperty('baseCallflowId') && arrayGroups.push(group);
});
arrayGroups.sort(function(a, b) {


Loading…
Cancel
Save