diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.html
index b717def63..df7e389f2 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.html
@@ -5,14 +5,14 @@
{{doc_data.document_title}}
-
-
+
+
-
-
-
+
+
+
@@ -22,28 +22,45 @@
+
+
+
+
+
+
+
+
+ Is shown report ?
+
+
+
+
+
+
-
-
+
+
Preview - Cropped Image
![]()
-
-
- Is shown report ?
-
-
-
-
-
+
+
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts
index 035fa93c9..9fbe641d5 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts
@@ -25,12 +25,13 @@ export class ImageCropComponent implements OnInit, OnDestroy {
isBase64Image:boolean = false;
previewflag = false;
address_form_id : any; //this one for
+ document_title ='';
constructor( notifier: NotifierService,
private dialogRef: MatDialogRef,
private sanitizer: DomSanitizer,
private _pd: PdTrigerService,@Inject(MAT_DIALOG_DATA) public doc_data: any) {
-
+ this.document_title = doc_data.document_title;
if(this.doc_data.hasOwnProperty('form_id')){
var str = this.doc_data.document_name;
var splitted = str.split("(", 2);
@@ -111,12 +112,15 @@ export class ImageCropComponent implements OnInit, OnDestroy {
let records: any = {
"pd_document_id": this.doc_data.document_id,
- "pd_document_title": this.doc_data.document_title,
+ "pd_document_title": this.document_title,
"pd_document_name": this.doc_data.document_name,
"is_show_report": this.address_form_id != 0 ? this.isshownreport : this.doc_data.is_show_report,
"image": this.cropImage,
"fk_pd_id":this.doc_data.pdid
};
+ // console.log(this.isshownreport);
+ // console.log(this.doc_data.is_show_report);
+ // console.log(this.is_show_report);
this._pd.updatePDPhoto(records).subscribe(
dataresult=>{