Skip to content
Code-Schnipsel Gruppen Projekte
Commit 51238bc4 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev' of dev.quiqqer.com:quiqqer/products into dev

Übergeordnete d51bbf63 8aa54738
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -77,8 +77,12 @@ define('package/quiqqer/products/bin/controls/fields/types/GroupList', [ ...@@ -77,8 +77,12 @@ define('package/quiqqer/products/bin/controls/fields/types/GroupList', [
Fields.getChild(this.$fieldId).then(function (fieldData) { Fields.getChild(this.$fieldId).then(function (fieldData) {
this.$allowedGroups = []; this.$allowedGroups = [];
if ("groupIds" in fieldData.options) { if ("groupIds" in fieldData.options && fieldData.options.groupIds) {
this.$allowedGroups = fieldData.options.groupIds; this.$allowedGroups = fieldData.options.groupIds;
this.$allowedGroups = this.$allowedGroups.map(function (g) {
return parseInt(g);
});
} }
if (!this.$allowedGroups || !this.$allowedGroups.length) { if (!this.$allowedGroups || !this.$allowedGroups.length) {
...@@ -168,7 +172,7 @@ define('package/quiqqer/products/bin/controls/fields/types/GroupList', [ ...@@ -168,7 +172,7 @@ define('package/quiqqer/products/bin/controls/fields/types/GroupList', [
return resolve(User); return resolve(User);
} }
return User.load(); User.load().then(resolve);
}).then(function (User) { }).then(function (User) {
var i, len, groupId; var i, len, groupId;
var groups = User.getAttribute('usergroup'); var groups = User.getAttribute('usergroup');
...@@ -211,10 +215,6 @@ define('package/quiqqer/products/bin/controls/fields/types/GroupList', [ ...@@ -211,10 +215,6 @@ define('package/quiqqer/products/bin/controls/fields/types/GroupList', [
searchSettings = false; searchSettings = false;
if (this.$allowedGroups) { if (this.$allowedGroups) {
this.$allowedGroups = this.$allowedGroups.map(function (g) {
return parseInt(g);
});
searchSettings = { searchSettings = {
filter: { filter: {
filter_group: this.$allowedGroups.join(',') filter_group: this.$allowedGroups.join(',')
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren