mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
Merge branch 'w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-7.6' into w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-main
This commit is contained in:
@@ -72,7 +72,7 @@ describe('AuthorizationDataService', () => {
|
|||||||
const ePersonUuid = 'fake-eperson-uuid';
|
const ePersonUuid = 'fake-eperson-uuid';
|
||||||
|
|
||||||
function createExpected(providedObjectUrl: string, providedEPersonUuid?: string, providedFeatureId?: FeatureID): FindListOptions {
|
function createExpected(providedObjectUrl: string, providedEPersonUuid?: string, providedFeatureId?: FeatureID): FindListOptions {
|
||||||
const searchParams = [new RequestParam('uri', providedObjectUrl)];
|
const searchParams = [new RequestParam('uri', providedObjectUrl, false)];
|
||||||
if (hasValue(providedFeatureId)) {
|
if (hasValue(providedFeatureId)) {
|
||||||
searchParams.push(new RequestParam('feature', providedFeatureId));
|
searchParams.push(new RequestParam('feature', providedFeatureId));
|
||||||
}
|
}
|
||||||
|
@@ -147,7 +147,8 @@ export class AuthorizationDataService extends BaseDataService<Authorization> imp
|
|||||||
if (isNotEmpty(options.searchParams)) {
|
if (isNotEmpty(options.searchParams)) {
|
||||||
params = [...options.searchParams];
|
params = [...options.searchParams];
|
||||||
}
|
}
|
||||||
params.push(new RequestParam('uri', objectUrl));
|
// TODO fix encode the uri parameter in the self link in the backend and set encodeValue to true afterwards
|
||||||
|
params.push(new RequestParam('uri', objectUrl, false));
|
||||||
if (hasValue(featureId)) {
|
if (hasValue(featureId)) {
|
||||||
params.push(new RequestParam('feature', featureId));
|
params.push(new RequestParam('feature', featureId));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user