Skip to content
Snippets Groups Projects
Commit fc8db54b authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

Merge branch 'fix/23871/develop' into 'develop'

[23871] Impossible de renvoyer un document s'il n'a pas de référence

See merge request maarch/MaarchParapheur!202
parents fd68d94b f94ed6c7
No related branches found
No related tags found
Loading
...@@ -67,11 +67,13 @@ export class IndexationComponent implements OnInit { ...@@ -67,11 +67,13 @@ export class IndexationComponent implements OnInit {
this.http.get(`../rest/documents/${resId}`).pipe( this.http.get(`../rest/documents/${resId}`).pipe(
tap((data: any) => { tap((data: any) => {
let ref = ''; let ref = '';
let arrRef = data.document.reference.split('/'); if (!this.functionsService.empty(data.document.reference)) {
arrRef = arrRef.slice(3, arrRef.length); let arrRef = data.document.reference.split('/');
arrRef = arrRef.slice(3, arrRef.length);
if (arrRef.length > 0) { if (arrRef.length > 0) {
ref = arrRef.join('/'); ref = arrRef.join('/');
}
} }
this.filesToUpload.push({ this.filesToUpload.push({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment