Merge "Fix image description field"
This commit is contained in:
commit
995c1225b6
@ -103,7 +103,8 @@
|
||||
.then(onMetadataGet);
|
||||
|
||||
function onMetadataGet(response) {
|
||||
var updated = metadata;
|
||||
var updated = metadata || Object();
|
||||
updated.description = image.properties.description;
|
||||
var removed = angular.copy(response.data);
|
||||
angular.forEach(updated, function(value, key) {
|
||||
delete removed[key];
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
describe('horizon.app.core.images.actions.edit.service', function() {
|
||||
var service, $scope, $q, deferred, $timeout, updateImageDeferred;
|
||||
var image = {id: 1, name: 'Original'};
|
||||
var image = {id: 1, name: 'Original', properties: {description: 'bla-bla'}};
|
||||
var existingMetadata = {p1: '1', p2: '2'};
|
||||
|
||||
var metadataService = {
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix an error on image description field when it is changed
|
||||
in the Angularized panel [:bug: `1779879`]
|
Loading…
Reference in New Issue
Block a user