Skip to content

Commit

Permalink
[frontend] fixed "undefined" category in app edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ata Kuyumcu committed Jul 22, 2019
1 parent 842941d commit 4625ebc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/express/public/javascripts/countly/countly.views.js
Original file line number Diff line number Diff line change
Expand Up @@ -2483,13 +2483,17 @@ window.ManageAppsView = countlyView.extend({
app_id: app_id,
name: appName,
type: $("#app-edit-type .cly-select .text").data("value") + '',
category: $("#app-edit-category .cly-select .text").data("value") + '',
key: app_key,
timezone: $("#app-edit-timezone #app-timezone").val(),
country: $("#app-edit-timezone #app-country").val(),
checksum_salt: $("#app-edit-salt .edit input").val()
};

var categoryValue = $("#app-edit-category .cly-select .text").data("value");
if (categoryValue) {
args.category = categoryValue + "";
}

$(".app-details .app-write-settings").each(function() {
var id = $(this).data('id');
if (app.appSettings[id] && app.appSettings[id].toSave) {
Expand Down

0 comments on commit 4625ebc

Please sign in to comment.