Skip to content

Commit

Permalink
controllers: preservation of full key on error
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
  • Loading branch information
jirikuncar committed Sep 15, 2016
1 parent 303e2eb commit 5db9d0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ Authors

Invenio Records JS.

- Alexander Ioannidis <a.ioannidis@cern.ch>
- Harris Tzovanakis <me@drjova.com>
- Jiri Kuncar <jiri.kuncar@cern.ch>
- Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
- Nikos Filippakis <nikolaos.filippakis@cern.ch>
- Tibor Simko <tibor.simko@cern.ch>
2 changes: 1 addition & 1 deletion src/invenio-records-js/controllers/InvenioRecordsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function InvenioRecordsCtrl($scope, $rootScope, $q, $window, $location,
angular.forEach(response.data.errors, function(value) {
try {
$scope.$broadcast(
'schemaForm.error.' + value.field.replace('metadata.', ''),
'schemaForm.error.' + value.field,
'backendValidationError',
value.message
);
Expand Down
8 changes: 3 additions & 5 deletions test/fixtures/init.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
"publish": "/api/deposit/depositions/45779/actions/publish",
"self": "/api/deposit/depositions/45779"
},
"metadata": {
"prereserve_doi": {
"doi": "10.5072/zenodo.45779",
"recid": 45779
}
"prereserve_doi": {
"doi": "10.5072/zenodo.45779",
"recid": 45779
},
"modified": "2016-06-27T13:35:49.835095+00:00",
"owner": 1,
Expand Down

0 comments on commit 5db9d0c

Please sign in to comment.