@@ -246,10 +246,10 @@ export abstract class BaseItemDataService extends IdentifiableDataService<Item>
246246 * Get the endpoint to move the item
247247 * @param itemId
248248 */
249- public getMoveItemEndpoint ( itemId : string ) : Observable < string > {
249+ public getMoveItemEndpoint ( itemId : string , inheritPolicies : boolean ) : Observable < string > {
250250 return this . halService . getEndpoint ( this . linkPath ) . pipe (
251251 map ( ( endpoint : string ) => this . getIDHref ( endpoint , itemId ) ) ,
252- map ( ( endpoint : string ) => `${ endpoint } /owningCollection` ) ,
252+ map ( ( endpoint : string ) => `${ endpoint } /owningCollection?inheritPolicies= ${ inheritPolicies } ` )
253253 ) ;
254254 }
255255
@@ -258,14 +258,14 @@ export abstract class BaseItemDataService extends IdentifiableDataService<Item>
258258 * @param itemId
259259 * @param collection
260260 */
261- public moveToCollection ( itemId : string , collection : Collection ) : Observable < RemoteData < any > > {
261+ public moveToCollection ( itemId : string , collection : Collection , inheritPolicies : boolean ) : Observable < RemoteData < any > > {
262262 const options : HttpOptions = Object . create ( { } ) ;
263263 let headers = new HttpHeaders ( ) ;
264264 headers = headers . append ( 'Content-Type' , 'text/uri-list' ) ;
265265 options . headers = headers ;
266266
267267 const requestId = this . requestService . generateRequestId ( ) ;
268- const hrefObs = this . getMoveItemEndpoint ( itemId ) ;
268+ const hrefObs = this . getMoveItemEndpoint ( itemId , inheritPolicies ) ;
269269
270270 hrefObs . pipe (
271271 find ( ( href : string ) => hasValue ( href ) ) ,
0 commit comments