Skip to content

Commit

Permalink
Use correct id for delete action
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Sep 24, 2019
1 parent b183ad3 commit dd05e05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function genericObjectDefinitionToolbarController(API, miqService, $window) {

// private functions
function postGenericObjectDefinitionAction() {
var currentRecordId = toolbar.recordId || ManageIQ.record.recordId;
var currentRecordId = ManageIQ.record.recordId;
if (toolbar.action === 'delete' && !currentRecordId) {
_.forEach(toolbar.genericObjectDefinitions, function(recordId) {
API.get('/api/generic_object_definitions/' + recordId + '?attributes=generic_objects_count')
Expand Down

0 comments on commit dd05e05

Please sign in to comment.