Skip to content

Commit

Permalink
Merge pull request #911 from OnroerendErfgoed/bugfix/902_manual_id_te…
Browse files Browse the repository at this point in the history
…xtbox_not_writable

#902 Fix bug where provider list was not updated after save or update
  • Loading branch information
goessebr authored Aug 1, 2024
2 parents 31e18bd + 6c6ca9b commit ab0f787
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,18 @@ define([
'sticky': false,
'channel': 'info'
});
this._reset(true);
this.parentNode.refresh_conceptschemes();
// Update the provider lists with the new data
this.providerController.loadProviders().then(lang.hitch(this, function() {
this._reset(true);
this.parentNode.refresh_conceptschemes();
}), lang.hitch(this, function (error) {
var message = this._parseError(error);
topic.publish('dGrowl', message, {
'title': 'Error updating provider list',
'sticky': true,
'channel': 'error'
});
}));
}),
lang.hitch(this, function (error) {
var message = this._parseError(error);
Expand All @@ -372,7 +382,17 @@ define([
'sticky': false,
'channel': 'info'
});
this._reset();
// Update the provider lists with the updated data
this.providerController.loadProviders().then(lang.hitch(this, function() {
this._reset();
}), lang.hitch(this, function (error) {
var message = this._parseError(error);
topic.publish('dGrowl', message, {
'title': 'Error updating provider list',
'sticky': true,
'channel': 'error'
});
}));
}),
lang.hitch(this, function (error) {
var message = this._parseError(error);
Expand Down

0 comments on commit ab0f787

Please sign in to comment.