Skip to content

Commit 76a11f6

Browse files
fix: something went wrong issue in public profile
1 parent 4262e0e commit 76a11f6

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

apps/OpenSign/src/constant/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { appInfo } from "./appinfo";
77
import { saveAs } from "file-saver";
88
import printModule from "print-js";
99

10-
export const fontsizeArr = [7, 8, 9, 10, 11, 12, 13, 14, 15, 18];
10+
export const fontsizeArr = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28];
1111
export const fontColorArr = ["red", "black", "blue", "yellow"];
1212
export const isMobile = window.innerWidth < 767;
1313
export const isTabAndMobile = window.innerWidth < 1023;

apps/OpenSign/src/pages/SignyourselfPdf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ function SignYourSelf() {
443443
};
444444
//function for setting position after drop signature button over pdf
445445
const addPositionOfSignature = (item, monitor) => {
446+
setCurrWidgetsDetails({});
446447
const key = randomId();
447448
let dropData = [];
448449
let dropObj = {};

apps/OpenSignServer/cloud/parsefunction/GetPublicTemplate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ async function GetPublicTemplate(request) {
1919
});
2020
templatQuery.descending('updatedAt');
2121
templatQuery.equalTo('IsPublic', true);
22+
templatQuery.notEqualTo('IsArchive', true);
2223
const getTemplate = await templatQuery.find({ useMasterKey: true });
2324

2425
const extend_Res = await Parse.Cloud.run('getUserDetails', {

apps/OpenSignServer/cloud/parsefunction/PublicUserLinkContactToDoc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ const createDocumentFromTemplate = async (template, existContact, index) => {
5454
object.set('Name', template?.Name);
5555
object.set('Description', template?.Description);
5656
object.set('Note', template?.Note);
57-
object.set('TimeToCompleteDays', template.TimeToCompleteDays || 15);
57+
object.set('TimeToCompleteDays', template?.TimeToCompleteDays || 15);
5858
object.set('SendinOrder', template?.SendinOrder);
59-
object.set('AutomaticReminders', template.AutomaticReminders);
60-
object.set('RemindOnceInEvery', template?.RemindOnceInEvery);
59+
object.set('AutomaticReminders', template?.AutomaticReminders || false);
60+
object.set('RemindOnceInEvery', template?.RemindOnceInEvery || 5);
6161
object.set('URL', template?.URL);
6262
object.set('CreatedBy', template?.CreatedBy);
6363
object.set('ExtUserPtr', template?.ExtUserPtr);
@@ -212,11 +212,11 @@ const sendMailToAllSigners = async docId => {
212212
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'User not found.');
213213
}
214214
} catch (e) {
215-
console.log('err in create document from template', err);
215+
console.log('error in get partners_Tenant class details', err);
216216
}
217217
}
218218
} catch (e) {
219-
console.log('err in create document from template', err);
219+
console.log('error in sendMailToAllSigners function', err);
220220
}
221221
};
222222

0 commit comments

Comments
 (0)