Compare commits

...

291 Commits

Author SHA1 Message Date
yuri
e9208602f6 css fix 2019-09-19 12:00:03 +03:00
yuri
e1d7733848 meeting/call do not show send invitees if only own user and accepted 2019-09-18 11:07:10 +03:00
yuri
b08f7de0cb email address fix double escaping 2019-09-18 10:48:12 +03:00
yuri
d83f02010a fix inbound email from address 2019-09-18 10:26:10 +03:00
yuri
88bc592fcd Merge branch 'hotfix/5.6.14' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.14 2019-09-17 17:35:54 +03:00
Taras Machyshyn
9c2a125365 Field Manager fix 2019-09-17 17:04:36 +03:00
yuri
e79e75c0d5 text field remove default rows param 2019-09-16 12:32:14 +03:00
yuri
2187073e2b css fix side navbar tab 2019-09-16 10:45:54 +03:00
yuri
3c36e81502 add ouath-callback to build 2019-09-16 10:34:39 +03:00
yuri
f8bafa5221 fix orm order 2019-09-13 12:58:44 +03:00
yuri
00a0cb1394 fix test 2019-09-13 12:58:31 +03:00
yuri
3a37f8421d fix action handler 2019-09-13 12:25:50 +03:00
yuri
2dbde4e2c8 fix detail action label 2019-09-13 11:58:04 +03:00
yuri
98084e9314 formula addLinkMultipleId do not throw error 2019-09-13 11:37:55 +03:00
yuri
2946969e3a detail custom actions 2019-09-13 11:36:01 +03:00
yuri
75c3891654 action history user type 2019-09-12 17:21:51 +03:00
yuri
c0866c8fea fix email template insert 2019-09-12 16:57:19 +03:00
yuri
5d3a785a49 v 2019-09-12 16:41:20 +03:00
yuri
4bcf88dcee fix mail sender 2019-09-12 16:39:32 +03:00
yuri
022d9a42ec transfromMarkdownText 2019-09-12 11:06:57 +03:00
yuri
ac80f67533 fix view helper 2019-09-11 15:55:02 +03:00
yuri
83fa22852a lang no quote escaping 2019-09-10 16:52:42 +03:00
yuri
7ffd8a54a1 v 2019-09-10 11:07:44 +03:00
yuri
739cb5e98f emailFoldersDisabled param 2019-09-10 11:04:13 +03:00
yuri
f5e1b7175e utils checkActionAvailability 2019-09-10 11:03:56 +03:00
yuri
81cb2aaeb8 fix navbar tpl 2019-09-09 13:28:53 +03:00
yuri
01ba132a62 field manager fix 2019-09-06 16:19:49 +03:00
yuri
4b31173355 multi enum fix 2019-09-06 15:21:39 +03:00
yuri
34cd265fc1 afterRelate hook for link multiple save 2019-09-04 11:27:27 +03:00
yuri
93f8ef9daa Merge branch 'hotfix/5.6.12' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.12 2019-09-03 11:04:15 +03:00
Taras Machyshyn
81ffbc8e6d Merge branch 'hotfix/5.6.12' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.12 2019-09-02 18:18:40 +03:00
Taras Machyshyn
061dda1a1e Fixed index name issue 2019-09-02 18:18:30 +03:00
yuri
41d8605e17 fix typo 2019-08-29 10:41:56 +03:00
yuri
13a2ba47e7 fix wysiwyg 2019-08-28 16:58:33 +03:00
yuri
4c598d19b5 link one empty filters 2019-08-28 12:13:27 +03:00
yuri
7d4227c98d Merge branch 'hotfix/5.6.12' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.12 2019-08-27 15:19:15 +03:00
Taras Machyshyn
1102e9f1e8 Added support PHPUnit 8 2019-08-27 14:57:31 +03:00
Taras Machyshyn
607ee9a080 Fix errors in a test 2019-08-26 17:13:33 +03:00
yuri
e30838cf27 link fields empty name fix 2019-08-22 12:10:08 +03:00
yuri
790355fb63 lead converted at 2019-08-22 11:46:46 +03:00
yuri
371fbf9864 email skip index if filter 2019-08-21 16:35:45 +03:00
Taras Machyshyn
e3ac8c3f67 Bug fixes for url params util 2019-08-20 13:58:37 +03:00
Taras Machyshyn
2087894c3a Added 'binary' option for a field 2019-08-19 17:21:00 +03:00
yuri
5c00a7ad43 fix email fitler duplicate 2019-08-19 11:44:25 +03:00
yuri
fe0dcc5342 remove duplicate label 2019-08-19 11:24:34 +03:00
Taras Machyshyn
f05381cc43 Corrected file permissions 2019-08-15 17:18:08 +03:00
yuri
a9a30d7237 duplicate silent confict exception 2019-08-14 13:09:22 +03:00
yuri
5312c1d141 image original link 2019-08-14 12:07:51 +03:00
yuri
a97d516c4f restrict common entity type name 2019-08-13 17:03:28 +03:00
Taras Machyshyn
16c24abb55 Integration tests: create database if not exists 2019-08-13 16:09:02 +03:00
Taras Machyshyn
ed897e9b97 Util changes 2019-08-13 11:56:15 +03:00
Taras Machyshyn
b4b222c1d7 Unit tests for sanitizeHtml() 2019-08-12 15:23:29 +03:00
yuri
a68d711249 summernote fix fullscreen 2019-08-12 15:15:57 +03:00
Taras Machyshyn
d6834f7f97 Installer changes 2019-08-12 14:53:11 +03:00
Taras Machyshyn
20818659e8 Installer changes 2019-08-12 14:49:25 +03:00
yuri
1c668ce983 signature toolbar 2019-08-12 11:39:59 +03:00
yuri
a9dacd74c6 v 2019-08-12 10:56:29 +03:00
yuri
b7c9ddc4e6 auth token secret fixes 2019-08-12 10:56:11 +03:00
yuri
d5ee599f9f language fix 2019-08-12 10:25:12 +03:00
yuri
742f4e21b5 comment out auth token secret 2019-08-10 19:11:03 +03:00
yuri
78fc80a619 v 2019-08-10 19:08:57 +03:00
yuri
e74fdce568 notifications lower case first 2019-08-09 15:17:16 +03:00
yuri
20139a88af email reply fix 2019-08-09 12:55:54 +03:00
yuri
3d1f632a73 fix lead capture 2019-08-09 12:29:00 +03:00
yuri
9e459e1287 escape error message 2019-08-09 12:22:10 +03:00
yuri
7b9cf6c039 wysiwyg fixes 2019-08-09 12:00:04 +03:00
yuri
1cebef107e dompurify target blank 2019-08-09 11:59:19 +03:00
yuri
47fe232c78 summernote css fixes 2019-08-09 11:31:32 +03:00
yuri
2c458a69a1 skipReRender and summernote fixes 2019-08-09 10:47:09 +03:00
yuri
54a290121e summernote fixes 2019-08-08 19:06:53 +03:00
yuri
11420dc0af summernote updates 2019-08-08 18:51:52 +03:00
yuri
957680a3d0 wysiwyg custom dialogs 2019-08-08 18:18:09 +03:00
yuri
3c6e19f4c0 wysiwyg codeviewFilter 2019-08-08 15:04:33 +03:00
yuri
4253915eed update summernote 2019-08-08 14:56:12 +03:00
yuri
da34789020 remove not needed escaping 2019-08-08 13:10:53 +03:00
yuri
cc057af59a filename escaping 2019-08-08 12:46:31 +03:00
yuri
ebaa3ed958 Merge branch 'hotfix/5.6.10' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.10 2019-08-08 11:49:05 +03:00
yuri
307c045c0e css fixes 2019-08-08 11:44:24 +03:00
Taras Machyshyn
8e09b81cf0 Fix instalation warnings 2019-08-08 10:16:08 +03:00
yuri
f40aeb0830 keep admin view on return 2019-08-07 14:31:42 +03:00
yuri
9d3e3e282f more admin icons 2019-08-07 11:56:53 +03:00
yuri
1bcd54dfe1 wysiwyg dom purify for edit except pdf templates 2019-08-07 11:19:41 +03:00
yuri
727f3a4707 attachment entry point allow only image types 2019-08-07 10:49:28 +03:00
yuri
d5473f9985 css fix 2019-08-06 17:54:39 +03:00
yuri
85c06f7ca3 admin icons 2019-08-06 17:42:41 +03:00
yuri
1d4d9882b6 portal users default order by date 2019-08-06 16:00:54 +03:00
yuri
e633984f7e fix tests 2019-08-06 15:15:09 +03:00
yuri
2dabecbae3 acl strict mode by default 2019-08-06 14:59:55 +03:00
yuri
c0800a4d16 auth token secret 2019-08-06 13:37:34 +03:00
yuri
85c62c0789 dashlets wo scroll on small screen 2019-08-06 12:48:50 +03:00
yuri
551e82ad8b css fixes 2019-08-06 11:11:30 +03:00
yuri
7f4328499b task priority on activities dashlet 2019-08-06 11:05:29 +03:00
yuri
de4d794d72 mention de_DE template 2019-08-06 10:31:28 +03:00
yuri
e2e374301a escape string 2019-08-05 16:58:22 +03:00
yuri
7a919dedfd lead capture improvements 2019-08-05 16:47:12 +03:00
yuri
06c8cbac52 mail sender fix 2019-08-05 16:29:52 +03:00
yuri
f54ad3ab0d lead capture dont log twice 2019-08-05 15:43:42 +03:00
yuri
197fb26beb campaign log filter 2019-08-05 15:30:32 +03:00
yuri
9e4582af17 langauge sanitize 2019-08-05 15:25:52 +03:00
yuri
b399c4444d global restriction fix 2019-08-05 14:05:04 +03:00
yuri
b7e9e69f35 confirm leave out backdrop 2019-08-05 10:27:49 +03:00
yuri
105b6444ed fix popovers 2019-08-02 17:16:16 +03:00
yuri
3559ff9f4e de lang fix 2019-08-02 16:54:04 +03:00
yuri
4be2962567 remove html from language 2019-08-02 16:46:48 +03:00
yuri
1cce748af5 fix test 2019-08-02 15:22:12 +03:00
yuri
64d3e3b5dd acl globalrestriction test 2019-08-02 15:18:47 +03:00
yuri
2e0233a239 task priority label 2019-08-02 15:07:26 +03:00
yuri
5b4bd88907 case priority label 2019-08-02 15:05:40 +03:00
yuri
6176ead935 GlobalRestricton cache fix 2019-08-02 14:12:07 +03:00
yuri
46ddf3b127 language fixes 2019-08-02 13:58:25 +03:00
yuri
2944e64de5 css fix 2019-08-02 12:23:44 +03:00
yuri
372cf20145 css fixes 2019-08-01 18:38:57 +03:00
yuri
633cc12650 css fixes 2019-08-01 16:51:39 +03:00
yuri
202d799436 header changes 2019-08-01 16:44:59 +03:00
yuri
f14d12853b header grid auto fit 2019-08-01 16:13:49 +03:00
yuri
a98f7f5068 lead capture optInDateTime placeholder 2019-08-01 13:55:47 +03:00
yuri
ebe249bd6b mobile ui fixes 2019-08-01 12:31:04 +03:00
yuri
7957296479 fix 2019-07-31 16:48:08 +03:00
yuri
b7eac5ba42 flexible titles 2019-07-31 16:43:54 +03:00
yuri
14cab0dbde dashboard changes 2019-07-31 15:26:41 +03:00
yuri
5db39d14e7 Merge branch 'hotfix/5.6.10' of github.com:espocrm/espocrm into hotfix/5.6.10 2019-07-31 13:06:49 +03:00
yuri
cf473d6f16 ui improvements 2019-07-31 13:06:40 +03:00
Karthik Bhat K
a082ea6acc added use Forbidden and removed unused class (#1372) 2019-07-31 09:06:47 +03:00
yuri
f770074be2 v 2019-07-30 18:53:33 +03:00
yuri
106e7726ba xs view navbar improvements 2019-07-30 18:50:50 +03:00
yuri
e680be54ad fix mapper 2019-07-30 14:58:56 +03:00
yuri
3224795368 sth collection fix 2019-07-30 13:41:09 +03:00
yuri
ec5bd78a33 access modal backdrop 2019-07-30 12:43:36 +03:00
yuri
d0c5d2aace lead capture hooks 2019-07-30 11:26:16 +03:00
yuri
ed4ce1a36e user disable mass update emailAddress and unset password 2019-07-30 11:06:42 +03:00
yuri
a6d7f91a58 disable inline edit for user type 2019-07-30 11:03:06 +03:00
yuri
f6f6c2b2ac email signature fit height 2019-07-30 11:01:51 +03:00
yuri
8c628df639 fix typo 2019-07-30 10:59:06 +03:00
yuri
ffd3f762ce xss fixes 2019-07-30 10:57:44 +03:00
yuri
24628a8487 returnSthCollection param 2019-07-29 17:56:15 +03:00
yuri
573d147dad v 2019-07-29 13:13:45 +03:00
yuri
4ab767e95b hook service factrory 2019-07-29 12:50:04 +03:00
yuri
18b64238ee fix list expanded overflow 2019-07-29 12:48:34 +03:00
yuri
65ded811b4 calendar height fix 2019-07-26 16:50:39 +03:00
yuri
57f454693a lead capture addition 2019-07-26 10:59:07 +03:00
yuri
b6409b5cba panel list border top 2019-07-26 10:42:47 +03:00
yuri
e6a83f7d19 reset button text 2019-07-26 10:35:16 +03:00
yuri
c39e1d140f css flip class 2019-07-26 10:35:10 +03:00
yuri
1c69f1ca95 categories fix 2019-07-25 17:50:30 +03:00
yuri
a21c071349 categories panel style change 2019-07-25 17:46:12 +03:00
yuri
741a6d5dab wysiwyg fixes 2019-07-25 16:25:18 +03:00
yuri
0c0a602330 list w categoties expand when text search 2019-07-25 13:06:30 +03:00
yuri
7d13018eba fix category expanding storing 2019-07-25 12:38:20 +03:00
yuri
44c65c0117 kb min body height in portal 2019-07-25 11:59:00 +03:00
yuri
e9e758c4b3 v 2019-07-25 11:26:02 +03:00
yuri
7e7acb8d28 fix template comments stripped 2019-07-25 11:25:48 +03:00
yuri
1ab897db28 fix email address field 2019-07-24 16:17:22 +03:00
yuri
1a990850ca add MMK currency 2019-07-24 16:05:37 +03:00
yuri
36e360e167 v 2019-07-24 15:49:55 +03:00
yuri
9ffdb1a1f0 title for some fields in list mode 2019-07-24 13:00:08 +03:00
yuri
64b15f9282 stream dont show create post for portal 2019-07-24 12:54:37 +03:00
yuri
e8ebe51f1c note create acl 2019-07-24 12:53:03 +03:00
yuri
ec2a7d2f48 fix no join name null 2019-07-24 12:25:24 +03:00
yuri
6782e7c15c dashboard fixes 2019-07-24 12:20:02 +03:00
yuri
3c73e3e8cf more string escaping 2019-07-24 12:04:24 +03:00
yuri
4ab7d19776 xss fixes 2019-07-23 17:50:02 +03:00
yuri
34e33bd13a searchPanelInPortalDisabled 2019-07-23 13:29:01 +03:00
yuri
49fa22fa3d v 2019-07-23 11:37:07 +03:00
yuri
10fcd79155 portal home tab 2019-07-23 11:36:39 +03:00
yuri
6cdc8f2823 mass update for portal users 2019-07-22 15:07:40 +03:00
yuri
d611ebfc86 cleanup try catch 2019-07-22 14:04:21 +03:00
yuri
599a7c6080 cleanup record service method 2019-07-22 13:53:02 +03:00
yuri
4c21f1192d email send: dont fail if attachment deleted 2019-07-22 13:00:25 +03:00
yuri
63e78baf21 fix orm join conditions 2019-07-22 12:46:14 +03:00
yuri
fa2c689a34 email skip index when search by link 2019-07-19 17:37:05 +03:00
yuri
a53b440b8b mass update hide not accessible fields 2019-07-19 17:13:30 +03:00
yuri
8189832af2 style option color 2019-07-19 17:07:58 +03:00
yuri
135f869e1a dynamic logix support currency 2019-07-19 13:12:18 +03:00
yuri
2d56525a25 fix autocomplete empty name 2019-07-19 12:57:48 +03:00
yuri
03773dd929 fix xss document file 2019-07-18 17:10:20 +03:00
yuri
5b8dba68f3 fix orm getAllAttributesFromComplexExpression 2019-07-18 16:55:55 +03:00
yuri
f63c75e18d v 2019-07-18 16:37:09 +03:00
yuri
6dd0bd8b90 sanitize wysiwyg 2019-07-18 16:36:00 +03:00
yuri
94e86f875a lead capture changes 2019-07-18 13:43:35 +03:00
yuri
b582b20003 array field improvement 2019-07-17 13:02:24 +03:00
yuri
e58e82eea1 entry point dont log stop error 2019-07-17 12:14:11 +03:00
yuri
dddc4feda8 image silent error not found 2019-07-17 12:13:52 +03:00
yuri
a65421a268 pt br lang 2019-07-17 12:01:45 +03:00
yuri
b6696dcc26 ru lang 2019-07-17 11:59:35 +03:00
yuri
4e3d8fb98f pl lang 2019-07-17 11:58:53 +03:00
yuri
e0aaff932e nl lang 2019-07-17 11:58:08 +03:00
yuri
17ea760851 layout fix 2019-07-16 17:55:57 +03:00
yuri
f3d11aede3 disable inlide edit for email accounts 2019-07-16 14:23:56 +03:00
yuri
8053d65f33 dynamic logic in options 2019-07-16 11:00:48 +03:00
yuri
01809d2cc3 confirm focus 2019-07-16 10:47:21 +03:00
yuri
ac8e3d1a69 fix portal base path 2019-07-16 10:41:47 +03:00
yuri
b669ccf733 fix portal isCustom undefined 2019-07-16 10:22:26 +03:00
yuri
8c42c6bf0b fix bool opted out search 2019-07-16 10:17:06 +03:00
yuri
97bdd22795 sanitize complex text 2019-07-15 12:37:23 +03:00
yuri
0f3cd7913c link skip acl param 2019-07-11 16:54:49 +03:00
yuri
502cfc8d76 fix foreign enum 2019-07-11 10:40:52 +03:00
yuri
d31e826305 fix websocket 2019-07-08 16:18:22 +03:00
yuri
28a62a2581 auth method list from metadata 2019-07-05 11:31:29 +03:00
yuri
deff6bad36 login page changes 2019-07-04 13:30:36 +03:00
yuri
f2bc80b7d9 auth settings changes 2019-07-04 12:15:29 +03:00
yuri
b5b5cac0ac calendar mode buttons improvement 2019-07-03 13:25:54 +03:00
yuri
308f30510b calendar css fixes 2019-07-03 11:51:35 +03:00
yuri
574513a9c8 fix navbar more scroll 2019-07-03 11:27:52 +03:00
yuri
f37bc7d46b external account token renewal fix 2019-07-02 16:09:25 +03:00
yuri
9f5db434df fix attachment multiple 2019-07-02 15:54:41 +03:00
yuri
1c8abd6e36 mutliple attachment multiple fields 2019-07-02 15:46:10 +03:00
yuri
c95fcd6fbd action configCheck 2019-07-01 16:31:02 +03:00
yuri
e6009366e8 version 2019-07-01 12:47:27 +03:00
yuri
286502d872 cssList fix 2019-07-01 12:47:07 +03:00
yuri
0749bdc006 cs fix 2019-07-01 12:45:54 +03:00
yuri
72ef137dbe fix app js logout request url 2019-07-01 12:45:50 +03:00
yuri
f624bdef5c settings global params 2019-07-01 12:30:44 +03:00
yuri
9730680e41 fix htmlizer 2019-07-01 10:30:23 +03:00
yuri
c59fa40615 log exception message line and file 2019-06-27 11:51:34 +03:00
yuri
4dc08dd37c custom login view 2019-06-27 11:34:35 +03:00
yuri
e76c7564dc custom unsubscribe template 2019-06-27 11:05:44 +03:00
yuri
802bac82f0 fix create activity from panel 2019-06-26 16:37:58 +03:00
yuri
c64cc13e4c link additional select params 2019-06-26 12:06:30 +03:00
yuri
30be62eabe fix google maps 2019-06-26 10:37:16 +03:00
yuri
1c1703b349 fix pdf 2019-06-25 13:35:50 +03:00
yuri
6916f3242c external account after connect hook 2019-06-25 11:07:32 +03:00
yuri
d2630a5c3f fix deleted user view 2019-06-24 14:25:52 +03:00
yuri
3e02776fcd email fixes 2019-06-24 13:29:45 +03:00
yuri
376bfe63e0 fix meeting set held 2019-06-20 16:33:09 +03:00
yuri
950a3b4703 calendar fix 2019-06-20 13:35:02 +03:00
yuri
2f5ffb7421 external acount acl 2019-06-18 13:32:18 +03:00
yuri
043ef8ef3e oauth client support header string 2019-06-13 16:30:10 +03:00
yuri
a959a2deaf view followers all users 2019-06-12 15:33:08 +03:00
yuri
65a3f4e5f3 external account return uri path 2019-06-12 13:36:34 +03:00
yuri
97355ad024 fix redirect uri 2019-06-12 11:26:50 +03:00
yuri
99300d2d61 integration redirect uri custom 2019-06-12 11:24:11 +03:00
yuri
e070d9d9f1 oauth-callback file 2019-06-12 11:11:43 +03:00
yuri
8f9bb79978 button handler init 2019-06-07 16:37:02 +03:00
yuri
405a5c29df layout manager css fix 2019-06-07 14:24:20 +03:00
yuri
4f2a2b290b fix calendar custom event 2019-06-07 11:32:30 +03:00
yuri
fd5218c10b btn-text color 2019-06-06 16:05:22 +03:00
yuri
73ab4aa42e meeting modal acceptance right 2019-06-06 13:16:48 +03:00
yuri
66a60b1257 timeline tpl change 2019-06-06 12:53:39 +03:00
yuri
c975954944 stream page btn-text 2019-06-06 12:42:47 +03:00
yuri
86799ed742 btn-text normal weight 2019-06-06 12:41:34 +03:00
yuri
1da6eca3be update npm packages 2019-06-06 11:45:31 +03:00
yuri
a462158582 category folder style fix 2019-06-05 16:22:35 +03:00
yuri
152b8991d3 email apply filters on sending 2019-06-05 14:15:36 +03:00
yuri
5adcf013d7 fix client manager 2019-06-05 12:56:02 +03:00
yuri
9d6401cbd3 fix iframe css 2019-06-05 12:49:49 +03:00
yuri
9f178bb467 next/prev fix on email remove to trash 2019-06-05 12:45:59 +03:00
yuri
f3b2cc9bcb cleanup 2019-06-05 12:19:10 +03:00
yuri
b18a8c1b2b fix 2019-06-05 12:15:42 +03:00
yuri
30dd7e560b search buttons narrow on small screen 2019-06-05 11:51:57 +03:00
yuri
ca35a4df75 fix dashboard tpl 2019-06-05 11:46:01 +03:00
yuri
fe0a6d1a8b map none label 2019-06-05 11:43:46 +03:00
yuri
f9223087df xlsx export array 2019-06-05 11:26:46 +03:00
yuri
f3980ef9a1 fix theme manager default css 2019-06-05 11:09:50 +03:00
yuri
93553d18fc fix job text filter 2019-06-05 11:05:05 +03:00
yuri
e35561093d css fix 2019-05-20 16:37:43 +03:00
yuri
b0742aa0c6 edit dashboard fix 2019-05-20 15:46:03 +03:00
yuri
efad2b142a font fixes 2019-05-20 15:40:50 +03:00
yuri
362f895e72 client link crossorigin 2019-05-20 15:22:26 +03:00
yuri
224b73eb89 font fix 2019-05-20 15:00:48 +03:00
yuri
c4cf45e7f8 fix preload font 2019-05-20 14:46:28 +03:00
yuri
cb45e57a99 client link noTimestamp 2019-05-20 14:00:50 +03:00
yuri
e7f62f79ef font swap 2019-05-20 13:56:21 +03:00
yuri
6fb21ccd77 client links 2019-05-20 13:51:05 +03:00
yuri
f55d814cbb font display block 2019-05-20 13:50:58 +03:00
yuri
8fa22a6c7d css fix 2019-05-20 13:18:03 +03:00
yuri
b86ca3a4ec stream popover fix 2019-05-20 12:19:54 +03:00
yuri
ab51e70ff4 add dashlet style fix 2019-05-20 12:02:38 +03:00
yuri
0bde83c0e7 css fix 2019-05-20 11:49:04 +03:00
yuri
589754851c font update 2019-05-20 11:47:27 +03:00
yuri
253930ba6d btn-text fix 2019-05-20 10:40:46 +03:00
yuri
09c19bbba5 remove cancel buttons from 2 modals 2019-05-17 16:38:41 +03:00
yuri
ac96ebffa5 btn-text 2019-05-17 16:10:26 +03:00
yuri
f01715452f last viewed date short 2019-05-17 13:18:19 +03:00
yuri
875b01dcd6 lastViewed metadata scopes param 2019-05-17 13:16:07 +03:00
yuri
61def7e332 pdf currency symbol 2019-05-17 12:50:36 +03:00
yuri
86b24ff618 orm field type attribute role 2019-05-17 12:50:27 +03:00
yuri
1d29d74204 cs fix 2019-05-17 12:46:39 +03:00
yuri
2cf820e181 user activities fix and optimization 2019-05-16 16:53:09 +03:00
yuri
bf8ab4dec2 account shipping address copy button hidden 2019-05-16 16:18:41 +03:00
yuri
7b772bde3c cs fix 2019-05-16 15:24:12 +03:00
yuri
dfbad82ba8 version 2019-05-15 14:34:11 +03:00
yuri
84938d88fc fix cleanup deleted records 2019-05-15 14:24:44 +03:00
yuri
ed5f66729d date time getSystemNowString 2019-05-14 16:49:47 +03:00
yuri
ee5218c46d orm entity id is changed fix 2019-05-14 15:48:27 +03:00
yuri
6758d71e2e lead capture skip email address is opted out field 2019-05-13 15:11:58 +03:00
yuri
1eec3d88cf integration test auth method 2019-05-13 12:31:49 +03:00
yuri
34f1c196f1 fix command upgrade msg 2019-05-13 10:43:59 +03:00
yuri
a87e2fb5db css fix 2019-05-13 10:25:57 +03:00
yuri
cecafa5e28 diff only one version from 2019-05-10 16:25:54 +03:00
yuri
a0e5f2d8ec cleanup 2019-05-10 16:06:58 +03:00
yuri
47080f9b78 search view changes 2019-05-10 16:06:41 +03:00
541 changed files with 10731 additions and 4051 deletions

View File

@@ -190,6 +190,7 @@ module.exports = function (grunt) {
'extension.php',
'websocket.php',
'command.php',
'oauth-callback.php',
'index.php',
'LICENSE.txt',
'.htaccess',

View File

@@ -46,6 +46,21 @@ class Note extends \Espo\Core\Acl\Base
return false;
}
public function checkEntityCreate(EntityUser $user, Entity $entity, $data)
{
if ($entity->get('parentId') && $entity->get('parentType')) {
$parent = $this->getEntityManager()->getEntity($entity->get('parentType'), $entity->get('parentId'));
if ($parent) {
if ($this->getAclManager()->checkEntity($user, $parent, 'stream')) {
return true;
}
}
return false;
}
return true;
}
public function checkEntityEdit(EntityUser $user, Entity $entity, $data)
{
if ($user->isAdmin()) {

View File

@@ -41,5 +41,26 @@ class Note extends \Espo\Core\AclPortal\Base
}
return false;
}
}
public function checkEntityCreate(EntityUser $user, Entity $entity, $data)
{
if ($entity->get('type') !== 'Post') return false;
if ($entity->get('type') === 'Post' && $entity->get('targetType')) {
return false;
}
if (!$entity->get('parentId') || !$entity->get('parentType')) {
return false;
}
$parent = $this->getEntityManager()->getEntity($entity->get('parentType'), $entity->get('parentId'));
if ($parent) {
if ($this->getAclManager()->checkEntity($user, $parent, 'stream')) {
return true;
}
}
return false;
}
}

View File

@@ -47,17 +47,27 @@ class ExternalAccount extends \Espo\Core\Controllers\Record
public function actionList($params, $data, $request)
{
$integrations = $this->getEntityManager()->getRepository('Integration')->find();
$arr = array();
$list = [];
foreach ($integrations as $entity) {
if ($entity->get('enabled') && $this->getMetadata()->get('integrations.' . $entity->id .'.allowUserAccounts')) {
$arr[] = array(
$userAccountAclScope = $this->getMetadata()->get(['integrations', $entity->id, 'userAccountAclScope']);
if ($userAccountAclScope) {
if (!$this->getAcl()->checkScope($userAccountAclScope)) {
continue;
}
}
$list[] = [
'id' => $entity->id
);
];
}
}
return array(
'list' => $arr
);
return [
'list' => $list
];
}
public function actionGetOAuth2Info($params, $data, $request)

View File

@@ -121,6 +121,8 @@ class FieldManager extends \Espo\Core\Controllers\Base
$this->getContainer()->get('fieldManager')->resetToDefault($data->scope, $data->name);
$this->getContainer()->get('dataManager')->clearCache();
$this->getContainer()->get('dataManager')->rebuildMetadata();
return true;

View File

@@ -69,4 +69,11 @@ class LeadCapture extends \Espo\Core\Controllers\Record
return $this->getRecordService()->generateNewApiKeyForEntity($data->id)->getValueMap();
}
public function getActionSmtpAccountDataList()
{
if (!$this->getUser()->isAdmin()) throw new Forbidden();
return $this->getServiceFactory()->create('LeadCapture')->getSmtpAccountDataList();
}
}

View File

@@ -25,10 +25,12 @@
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
************************************************************************/
namespace Espo\Controllers;
use Espo\Core\Exceptions\Forbidden;
class ScheduledJob extends \Espo\Core\Controllers\Record
{
protected function checkControllerAccess()

View File

@@ -25,10 +25,12 @@
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
************************************************************************/
namespace Espo\Controllers;
use Espo\Core\Exceptions\Forbidden;
class ScheduledJobLogRecord extends \Espo\Core\Controllers\Record
{
protected function checkControllerAccess()
@@ -38,4 +40,3 @@ class ScheduledJobLogRecord extends \Espo\Core\Controllers\Record
}
}
}

View File

@@ -29,18 +29,22 @@
namespace Espo\Controllers;
use \Espo\Core\Exceptions\Error;
use \Espo\Core\Exceptions\Forbidden;
use \Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\BadRequest;
class Settings extends \Espo\Core\Controllers\Base
{
protected function getConfigData()
{
$data = $this->getServiceFactory()->create('Settings')->getConfigData();
$data->jsLibs = $this->getMetadata()->get('app.jsLibs');
$data->jsLibs = $this->getMetadata()->get(['app', 'jsLibs']);
unset($data->loginView);
$loginView = $this->getMetadata()->get(['clientDefs', 'App', 'loginView']);
if ($loginView) {
$data->loginView = $loginView;
}
return $data;
}

View File

@@ -60,21 +60,45 @@ class GlobalRestricton
public function __construct(
\Espo\Core\Utils\Metadata $metadata,
\Espo\Core\Utils\File\Manager $fileManager,
\Espo\Core\Utils\FieldManagerUtil $fieldManagerUtil
\Espo\Core\Utils\FieldManagerUtil $fieldManagerUtil,
bool $useCache = true
)
{
$this->metadata = $metadata;
$this->fileManager = $fileManager;
$this->fieldManagerUtil = $fieldManagerUtil;
if (!file_exists($this->cacheFilePath)) {
$this->buildCacheFile();
$isFromCache = false;
if ($useCache) {
if (file_exists($this->cacheFilePath)) {
$this->data = include($this->cacheFilePath);
$isFromCache = true;
if (!($this->data instanceof \StdClass)) {
$GLOBALS['log']->error("ACL GlobalRestricton: Bad data fetched from cache.");
$this->data = null;
}
}
}
$this->data = include($this->cacheFilePath);
if (!$this->data) {
$this->buildData();
}
if ($useCache) {
if (!$isFromCache) {
$this->storeCacheFile();
}
}
}
protected function buildCacheFile()
protected function storeCacheFile()
{
$this->getFileManager()->putPhpContents($this->cacheFilePath, $this->data, true);
}
protected function buildData()
{
$scopeList = array_keys($this->getMetadata()->get(['entityDefs'], []));
@@ -127,8 +151,6 @@ class GlobalRestricton
}
$this->data = $data;
$this->getFileManager()->putPhpContents($this->cacheFilePath, $data, true);
}
protected function getMetadata()

View File

@@ -59,7 +59,8 @@ class AclManager
$this->globalRestricton = new \Espo\Core\Acl\GlobalRestricton(
$container->get('metadata'),
$container->get('fileManager'),
$container->get('fieldManagerUtil')
$container->get('fieldManagerUtil'),
$container->get('config')->get('useCache')
);
}

View File

@@ -133,7 +133,9 @@ class Application
$slim->run();
} catch (\Exception $e) {
$container->get('output')->processError($e->getMessage(), $e->getCode(), true, $e);
try {
$container->get('output')->processError($e->getMessage(), $e->getCode(), true, $e);
} catch (\Slim\Exception\Stop $e) {}
}
}

View File

@@ -48,7 +48,7 @@ class Upgrade extends Base
return;
}
fwrite(\STDOUT, "EspoCRM will be upgaded to version {$nextVersion} now. Type 'Y' to continue.\n");
fwrite(\STDOUT, "EspoCRM will be upgraded to version {$nextVersion} now. Enter [Y] to continue.\n");
if (!$this->confirm()) {
echo "Upgrade canceled.\n";

View File

@@ -291,7 +291,7 @@ class Container
'en_US',
$this->get('fileManager'),
$this->get('metadata'),
$this->get('useCache')
$this->get('config')->get('useCache')
);
}
@@ -301,7 +301,7 @@ class Container
\Espo\Core\Utils\Language::detectLanguage($this->get('config')),
$this->get('fileManager'),
$this->get('metadata'),
$this->get('useCache')
$this->get('config')->get('useCache')
);
}

View File

@@ -0,0 +1,35 @@
<?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2019 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* EspoCRM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with EspoCRM. If not, see http://www.gnu.org/licenses/.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
namespace Espo\Core\Exceptions;
class ConflictSilent extends Conflict
{
public $logLevel = 'notice';
}

View File

@@ -491,7 +491,14 @@ class Xlsx extends \Espo\Core\Injectable
$sheet->setCellValue("$col$rowNumber", $value);
}
} else if ($type == 'multiEnum' || $type == 'array') {
if (!empty($row[$name])) {
$array = json_decode($row[$name]);
if (is_array($array)) {
$value = implode(', ', $array);
$sheet->setCellValue("$col$rowNumber", $value, \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);
}
}
} else {
if (array_key_exists($name, $row)) {
$sheet->setCellValueExplicit("$col$rowNumber", $row[$name], \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);

View File

@@ -69,7 +69,7 @@ class ClientManager
$externalAccountEntity = $this->clientMap[$hash]['externalAccountEntity'];
$externalAccountEntity->set('accessToken', $data['accessToken']);
$externalAccountEntity->set('tokenType', $data['tokenType']);
$this->getEntityManager()->saveEntity($externalAccountEntity);
$this->getEntityManager()->saveEntity($externalAccountEntity, ['isTokenRenewal' => true]);
}
}
@@ -87,7 +87,12 @@ class ClientManager
$className = $this->getMetadata()->get("integrations.{$integration}.clientClassName");
$redirectUri = $this->getConfig()->get('siteUrl') . '?entryPoint=oauthCallback'; // TODO move to client class
$redirectUri = $this->getConfig()->get('siteUrl') . '?entryPoint=oauthCallback';
$redirectUriPath = $this->getMetadata()->get(['integrations', $integration, 'params', 'redirectUriPath']);
if ($redirectUriPath) {
$redirectUri = rtrim($this->getConfig()->get('siteUrl'), '/') . '/' . $redirectUriPath;
}
if (!$externalAccountEntity) {
throw new Error("External Account {$integration} not found for {$userId}");

View File

@@ -187,7 +187,11 @@ class Client
$curlOptHttpHeader = array();
foreach ($httpHeaders as $key => $value) {
$curlOptHttpHeader[] = "{$key}: {$value}";
if (is_int($key) && !is_string($key)) {
$curlOptHttpHeader[] = $value;
continue;
}
$curlOptHttpHeader[] = "{$key}: {$value}";
}
$curlOptions[CURLOPT_HTTPHEADER] = $curlOptHttpHeader;

View File

@@ -65,7 +65,7 @@ class AddLinkMultipleIdType extends \Espo\Core\Formula\Functions\Base
}
} else {
if (!is_string($id)) {
throw new Error();
return;
}
$this->getEntity()->addLinkMultipleId($link, $id);
}

View File

@@ -44,6 +44,7 @@ abstract class Base implements Injectable
'metadata',
'aclManager',
'user',
'serviceFactory',
];
protected $dependencies = []; // for backward compatibility
@@ -118,4 +119,9 @@ abstract class Base implements Injectable
{
return $this->getInjection('metadata');
}
protected function getServiceFactory()
{
return $this->getInjection('serviceFactory');
}
}

View File

@@ -147,6 +147,7 @@ class Htmlizer
}
$type = $entity->getAttributeType($attribute);
$fieldType = $entity->getAttributeParam($attribute, 'fieldType');
if ($type == Entity::DATETIME) {
if (!empty($data[$attribute])) {
@@ -194,6 +195,14 @@ class Htmlizer
unset($data[$attribute]);
}
if ($fieldType === 'currency' && $this->metadata) {
if ($entity->getAttributeParam($attribute, 'attributeRole') === 'currency') {
if ($currencyValue = $data[$attribute]) {
$data[$attribute . 'Symbol'] = $this->metadata->get(['app', 'currency', 'symbolMap', $currencyValue]);
}
}
}
if (array_key_exists($attribute, $data)) {
$keyRaw = $attribute . '_RAW';
$data[$keyRaw] = $data[$attribute];

View File

@@ -172,7 +172,7 @@ class Sender
return $this;
}
public function send(Email $email, $params = [], &$message = null, $attachmentList = [])
public function send(Email $email, $params = [], $message = null, $attachmentList = [])
{
if (!$message) {
$message = new Message();
@@ -284,6 +284,7 @@ class Sender
$contents = $a->get('contents');
} else {
$fileName = $this->getEntityManager()->getRepository('Attachment')->getFilePath($a);
if (!is_file($fileName)) continue;
$contents = file_get_contents($fileName);
}
$attachment = new MimePart($contents);
@@ -303,6 +304,7 @@ class Sender
$contents = $a->get('contents');
} else {
$fileName = $this->getEntityManager()->getRepository('Attachment')->getFilePath($a);
if (!is_file($fileName)) continue;
$contents = file_get_contents($fileName);
}
$attachment = new MimePart($contents);
@@ -399,6 +401,7 @@ class Sender
$email->set('status', 'Sent');
$email->set('dateSent', date("Y-m-d H:i:s"));
} catch (\Exception $e) {
$this->useGlobal();
throw new Error($e->getMessage(), 500);
}

View File

@@ -197,10 +197,10 @@ class RDB extends \Espo\ORM\Repositories\RDB implements Injectable
protected function afterMassRelate(Entity $entity, $relationName, array $params = [], array $options = [])
{
if (!$this->hooksDisabled && empty($options['skipHooks'])) {
$hookData = array(
$hookData = [
'relationName' => $relationName,
'relationParams' => $params
);
'relationParams' => $params,
];
$this->getEntityManager()->getHookManager()->process($this->entityType, 'afterMassRelate', $entity, $options, $hookData);
}
}
@@ -215,14 +215,24 @@ class RDB extends \Espo\ORM\Repositories\RDB implements Injectable
{
parent::afterRelate($entity, $relationName, $foreign, $data, $options);
if ($foreign instanceof Entity) {
$foreignEntity = $foreign;
if (!$this->hooksDisabled && empty($options['skipHooks'])) {
$hookData = array(
if (!$this->hooksDisabled && empty($options['skipHooks'])) {
if (is_string($foreign)) {
$foreignId = $foreign;
$foreignEntityType = $entity->getRelationParam($relationName, 'entity');
if ($foreignEntityType) {
$foreign = $this->getEntityManager()->getEntity($foreignEntityType);
$foreign->id = $foreignId;
$foreign->setAsFetched();
}
}
if ($foreign instanceof Entity) {
$hookData = [
'relationName' => $relationName,
'relationData' => $data,
'foreignEntity' => $foreignEntity
);
'foreignEntity' => $foreign,
'foreignId' => $foreign->id,
];
$this->getEntityManager()->getHookManager()->process($this->entityType, 'afterRelate', $entity, $options, $hookData);
}
}
@@ -232,13 +242,23 @@ class RDB extends \Espo\ORM\Repositories\RDB implements Injectable
{
parent::afterUnrelate($entity, $relationName, $foreign, $options);
if ($foreign instanceof Entity) {
$foreignEntity = $foreign;
if (!$this->hooksDisabled && empty($options['skipHooks'])) {
$hookData = array(
if (!$this->hooksDisabled && empty($options['skipHooks'])) {
if (is_string($foreign)) {
$foreignId = $foreign;
$foreignEntityType = $entity->getRelationParam($relationName, 'entity');
if ($foreignEntityType) {
$foreign = $this->getEntityManager()->getEntity($foreignEntityType);
$foreign->id = $foreignId;
$foreign->setAsFetched();
}
}
if ($foreign instanceof Entity) {
$hookData = [
'relationName' => $relationName,
'foreignEntity' => $foreignEntity
);
'foreignEntity' => $foreign,
'foreignId' => $foreign->id,
];
$this->getEntityManager()->getHookManager()->process($this->entityType, 'afterUnrelate', $entity, $options, $hookData);
}
}

View File

@@ -50,9 +50,9 @@ class Application extends \Espo\Core\Application
$portal = $this->getContainer()->get('entityManager')->getEntity('Portal', $portalId);
if (!$portal) {
$portal = $this->getContainer()->get('entityManager')->getRepository('Portal')->where(array(
$portal = $this->getContainer()->get('entityManager')->getRepository('Portal')->where([
'customId' => $portalId
))->findOne();
])->findOne();
}
if (!$portal) {

View File

@@ -94,7 +94,7 @@ class Container extends \Espo\Core\Container
\Espo\Core\Utils\Language::detectLanguage($this->get('config'), $this->get('preferences')),
$this->get('fileManager'),
$this->get('metadata'),
$this->get('useCache')
$this->get('config')->get('useCache')
);
$language->setPortal($this->get('portal'));
return $language;

View File

@@ -1,8 +1,8 @@
{
"links": {
"meetings": "vergaderingen",
"calls": "gesprekken",
"tasks": "taken"
"meetings": "Vergaderingen",
"calls": "Gesprekken",
"tasks": "Taken"
},
"labels": {
"Create {entityType}": "Klant {entityTypeTranslated}"

View File

@@ -1,7 +1,7 @@
{
"fields": {
"billingAddress": "Facturatie adres",
"shippingAddress": "Verzendingsadres"
"shippingAddress": "Verzending adres"
},
"links": {
"meetings": "vergaderingen",

View File

@@ -31,6 +31,7 @@
"setNotHeld": "Set not Held"
},
"presetFilters": {
"planned": "Gepland"
"planned": "Gepland",
"todays": "Vandaag"
}
}

View File

@@ -3,9 +3,9 @@
"address": "Adres"
},
"links": {
"meetings": "vergaderingen",
"calls": "gesprekken",
"tasks": "taken"
"meetings": "Vergaderingen",
"calls": "Gesprekken",
"tasks": "Taken"
},
"labels": {
"Create {entityType}": "Klant {entityTypeTranslated}"

View File

@@ -1,5 +1,5 @@
{
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}

View File

@@ -1,5 +1,9 @@
{
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}
"links": {
"meetings": "Reuniões",
"tasks": "Tarefas"
},
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}

View File

@@ -1,5 +1,13 @@
{
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}
"fields": {
"billingAddress": "Endereço de Cobrança",
"shippingAddress": "Endereço de Entrega"
},
"links": {
"meetings": "Reuniões",
"tasks": "Tarefas"
},
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}

View File

@@ -1,5 +1,5 @@
{
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}

View File

@@ -1,5 +1,12 @@
{
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}
"fields": {
"address": "Endereço"
},
"links": {
"meetings": "Reuniões",
"tasks": "Tarefas"
},
"labels": {
"Create {entityType}": "Criar {entityTypeTranslated}"
}
}

View File

@@ -102,14 +102,28 @@ class Output
public function displayError(string $text, int $statusCode = 500, bool $toPrint = false, $exception = null)
{
$logLevel = 'error';
$messageLineFile = null;
if ($exception) {
$messageLineFile = 'line: ' . $exception->getLine() . ', file: ' . $exception->getFile();
}
if ($exception && !empty($exception->logLevel)) {
$logLevel = $exception->logLevel;
}
$logMessageItemList = [];
if ($text) $logMessageItemList[] = "{$text}";
if (!empty($this->slim)) {
$logMessageItemList[] = $this->getSlim()->request()->getMethod() . ' ' .$_SERVER['REQUEST_URI'];
}
if ($messageLineFile) {
$logMessageItemList[] = $messageLineFile;
}
$logMessage = "($statusCode) " . implode("; ", $logMessageItemList);
$GLOBALS['log']->log($logLevel, $logMessage);
@@ -134,6 +148,8 @@ class Output
if ($toPrint) {
$status = $this->getCodeDescription($statusCode);
$status = isset($status) ? $statusCode.' '.$status : 'HTTP '.$statusCode;
if ($text)
$text = htmlspecialchars($text);
$this->getSlim()->printError($text, $status);
}

View File

@@ -142,6 +142,14 @@ class Auth
}
}
$createTokenSecret = $this->request->headers->get('Espo-Authorization-Create-Token-Secret') === 'true';
if ($createTokenSecret) {
if ($this->getConfig()->get('authTokenSecretDisabled')) {
$createTokenSecret = false;
}
}
if (!$isByTokenOnly) {
$this->checkFailedAttemptsLimit($username);
}
@@ -153,6 +161,15 @@ class Auth
$authToken = $this->getEntityManager()->getRepository('AuthToken')->where([
'token' => $password
])->findOne();
if ($authToken) {
if ($authToken->get('secret')) {
$sentSecret = $_COOKIE['auth-token-secret'] ?? null;
if ($sentSecret !== $authToken->get('secret')) {
$authToken = null;
}
}
}
}
if ($authToken) {
@@ -255,6 +272,13 @@ class Auth
$authToken->set('hash', $user->get('password'));
$authToken->set('ipAddress', $_SERVER['REMOTE_ADDR']);
$authToken->set('userId', $user->id);
if ($createTokenSecret) {
$secret = $this->generateToken();
$authToken->set('secret', $secret);
$this->setSecretInCookie($secret);
}
if ($this->isPortal()) {
$authToken->set('portalId', $this->getPortal()->id);
}
@@ -334,10 +358,16 @@ class Auth
public function destroyAuthToken($token)
{
$authToken = $this->getEntityManager()->getRepository('AuthToken')->select(['id', 'isActive'])->where(['token' => $token])->findOne();
$authToken = $this->getEntityManager()->getRepository('AuthToken')->select(['id', 'isActive', 'secret'])->where(['token' => $token])->findOne();
if ($authToken) {
$authToken->set('isActive', false);
$this->getEntityManager()->saveEntity($authToken);
if ($authToken->get('secret')) {
$sentSecret = $_COOKIE['auth-token-secret'] ?? null;
if ($sentSecret === $authToken->get('secret')) {
setcookie('auth-token-secret', null, -1, '/');
}
}
return true;
}
}
@@ -379,4 +409,19 @@ class Auth
$authLogRecord->set('denialReason', $denialReason);
$this->getEntityManager()->saveEntity($authLogRecord);
}
protected function setSecretInCookie(string $secret)
{
if (version_compare(\PHP_VERSION, '7.3.0') < 0) {
setcookie('auth-token-secret', $secret, strtotime('+1000 days'), '/', '', false, true);
return;
}
setcookie('auth-token-secret', $secret, [
'expires' => strtotime('+1000 days'),
'path' => '/',
'httponly' => true,
'samesite' => 'Lax',
]);
}
}

View File

@@ -99,15 +99,17 @@ class ClientManager
if ($isDeveloperMode) {
$useCache = $this->getConfig()->get('useCacheInDeveloperMode');
$jsFileList = $this->getMetadata()->get(['app', 'client', 'developerModeScriptList'], []);
$cssFileList = $this->getMetadata()->get(['app', 'client', 'developerModeCssList'], []);
$loaderCacheTimestamp = 'null';
} else {
$useCache = $this->getConfig()->get('useCache');
$jsFileList = $this->getMetadata()->get(['app', 'client', 'scriptList'], []);
$cssFileList = $this->getMetadata()->get(['app', 'client', 'cssList'], []);
$loaderCacheTimestamp = $cacheTimestamp;
}
$cssFileList = $this->getMetadata()->get(['app', 'client', 'cssList'], []);
$linkList = $this->getMetadata()->get(['app', 'client', 'linkList'], []);
$scriptsHtml = '';
foreach ($jsFileList as $jsFile) {
$src = $this->basePath . $jsFile . '?r=' . $cacheTimestamp;
@@ -121,6 +123,22 @@ class ClientManager
$additionalStyleSheetsHtml .= "\n <link rel=\"stylesheet\" href=\"{$src}\">";
}
$linksHtml = '';
foreach ($linkList as $item) {
$href = $this->basePath . $item['href'];
if (empty($item['noTimestamp'])) {
$href .= '?r=' . $cacheTimestamp;
}
$as = $item['as'] ?? '';
$rel = $item['rel'] ?? '';
$type = $item['type'] ?? '';
$additinalPlaceholder = '';
if (!empty($item['crossorigin'])) {
$additinalPlaceholder .= ' crossorigin';
}
$linksHtml .= "\n <link rel=\"{$rel}\" href=\"{$href}\" as=\"{$as}\" as=\"{$type}\"{$additinalPlaceholder}>";
}
$data = [
'applicationId' => 'espocrm-application-id',
'apiUrl' => 'api/v1',
@@ -134,6 +152,7 @@ class ClientManager
'appClientClassName' => 'app',
'scriptsHtml' => $scriptsHtml,
'additionalStyleSheetsHtml' => $additionalStyleSheetsHtml,
'linksHtml' => $linksHtml,
];
$html = file_get_contents($htmlFilePath);

View File

@@ -31,7 +31,6 @@ namespace Espo\Core\Utils\Database\DBAL\Schema;
class Column extends \Doctrine\DBAL\Schema\Column
{
/**
* @var boolean
*/
@@ -42,6 +41,7 @@ class Column extends \Doctrine\DBAL\Schema\Column
*/
protected $_unique = false;
protected $_quoted = true;
/**
* @param boolean $unique
@@ -85,4 +85,4 @@ class Column extends \Doctrine\DBAL\Schema\Column
), $this->_platformOptions, $this->_customSchemaOptions);
}
}
}

View File

@@ -30,6 +30,7 @@
namespace Espo\Core\Utils\Database\DBAL\Schema;
use Doctrine\DBAL\Schema\Index as DBALIndex;
use Doctrine\DBAL\Platforms\AbstractPlatform;
class Index extends \Doctrine\DBAL\Schema\Index
{
@@ -79,4 +80,16 @@ class Index extends \Doctrine\DBAL\Schema\Index
return false;
}
}
public function getQuotedColumns(AbstractPlatform $platform)
{
$columns = array();
foreach ($this->_columns as $column) {
$column->_quoted = true;
$columns[] = $column->getQuotedName($platform);
}
return $columns;
}
}

View File

@@ -34,6 +34,8 @@ use Doctrine\DBAL\Schema\SchemaException;
class Table extends \Doctrine\DBAL\Schema\Table
{
protected $_quoted = true;
/**
* @param string $columnName
* @param string $typeName
@@ -81,4 +83,4 @@ class Table extends \Doctrine\DBAL\Schema\Table
return $this;
}
}
}

View File

@@ -91,7 +91,8 @@ class Converter
'select' => 'select',
'orderBy' => 'orderBy',
'where' => 'where',
'storeArrayValues' => 'storeArrayValues'
'storeArrayValues' => 'storeArrayValues',
'binary' => 'binary',
);
protected $idParams = array(
@@ -506,6 +507,10 @@ class Converter
}
}
if (isset($fieldParams['type'])) {
$values['fieldType'] = $fieldParams['type'];
}
return $values;
}

View File

@@ -100,6 +100,8 @@ class Currency extends Base
'sql' => $converedFieldName . " {direction}",
'leftJoins' => $leftJoins,
],
'attributeRole' => 'valueConverted',
'fieldType' => 'currency',
];
$defs[$entityType]['fields'][$fieldName]['orderBy'] = [
@@ -108,6 +110,12 @@ class Currency extends Base
];
}
$defs[$entityType]['fields'][$fieldName]['attributeRole'] = 'value';
$defs[$entityType]['fields'][$fieldName]['fieldType'] = 'currency';
$defs[$entityType]['fields'][$fieldName . 'Currency']['attributeRole'] = 'currency';
$defs[$entityType]['fields'][$fieldName . 'Currency']['fieldType'] = 'currency';
return $defs;
}
}

View File

@@ -121,10 +121,12 @@ class Email extends Base
'select' => 'emailAddresses.opt_out',
'where' => [
'= TRUE' => [
'sql' => 'emailAddresses.opt_out = true AND emailAddresses.opt_out IS NOT NULL'
'sql' => 'emailAddresses.opt_out = true AND emailAddresses.opt_out IS NOT NULL',
'leftJoins' => [['emailAddresses', 'emailAddresses', ['primary' => 1]]],
],
'= FALSE' => [
'sql' => 'emailAddresses.opt_out = false OR emailAddresses.opt_out IS NULL'
'sql' => 'emailAddresses.opt_out = false OR emailAddresses.opt_out IS NULL',
'leftJoins' => [['emailAddresses', 'emailAddresses', ['primary' => 1]]],
]
],
'orderBy' => 'emailAddresses.opt_out {direction}'

View File

@@ -35,25 +35,30 @@ class Link extends Base
{
$fieldParams = $this->getFieldParams();
$data = array(
$entityName => array (
'fields' => array(
$fieldName.'Id' => array(
$data = [
$entityName => [
'fields' => [
$fieldName.'Id' => [
'type' => 'foreignId',
'index' => $fieldName
),
$fieldName.'Name' => array(
'index' => $fieldName,
'attributeRole' => 'id',
'fieldType' => 'link',
],
$fieldName.'Name' => [
'type' => 'varchar',
'notStorable' => true
)
)
),
'unset' => array(
$entityName => array(
'fields.'.$fieldName
)
)
);
'notStorable' => true,
'attributeRole' => 'name',
'fieldType' => 'link',
]
]
],
'unset' => [
$entityName => [
'fields.' . $fieldName
]
]
];
if (!empty($fieldParams['notStorable'])) {
$data[$entityName]['fields'][$fieldName.'Id']['notStorable'] = true;
}
@@ -64,4 +69,4 @@ class Link extends Base
return $data;
}
}
}

View File

@@ -41,12 +41,16 @@ class LinkMultiple extends Base
'notStorable' => true,
'isLinkMultipleIdList' => true,
'relation' => $fieldName,
'isUnordered' => true
'isUnordered' => true,
'attributeRole' => 'idList',
'fieldType' => 'linkMultiple',
],
$fieldName.'Names' => [
'type' => 'jsonObject',
'notStorable' => true,
'isLinkMultipleNameMap' => true
'isLinkMultipleNameMap' => true,
'attributeRole' => 'nameMap',
'fieldType' => 'linkMultiple',
]
]
],
@@ -71,7 +75,8 @@ class LinkMultiple extends Base
$data[$entityName]['fields'][$fieldName . 'Columns'] = [
'type' => 'jsonObject',
'notStorable' => true,
'columns' => $columns
'columns' => $columns,
'attributeRole' => 'columnsMap',
];
}

View File

@@ -33,33 +33,39 @@ class LinkParent extends Base
{
protected function load($fieldName, $entityName)
{
$data = array(
$entityName => array (
'fields' => array(
$fieldName.'Id' => array(
$data = [
$entityName => [
'fields' => [
$fieldName.'Id' => [
'type' => 'foreignId',
'index' => $fieldName
),
$fieldName.'Type' => array(
'index' => $fieldName,
'attributeRole' => 'id',
'fieldType' => 'linkParent',
],
$fieldName.'Type' => [
'type' => 'foreignType',
'notNull' => false,
'index' => $fieldName,
'len' => 100
),
$fieldName.'Name' => array(
'len' => 100,
'attributeRole' => 'type',
'fieldType' => 'linkParent',
],
$fieldName.'Name' => [
'type' => 'varchar',
'notStorable' => true,
'relation' => $fieldName,
'isParentName' => true
)
)
),
'unset' => array(
$entityName => array(
'isParentName' => true,
'attributeRole' => 'name',
'fieldType' => 'linkParent',
]
]
],
'unset' => [
$entityName => [
'fields.'.$fieldName
)
)
);
]
]
];
$fieldParams = $this->getFieldParams();
@@ -72,4 +78,4 @@ class LinkParent extends Base
return $data;
}
}
}

View File

@@ -122,10 +122,12 @@ class Phone extends Base
'select' => 'phoneNumbers.opt_out',
'where' => [
'= TRUE' => [
'sql' => 'phoneNumbers.opt_out = true AND phoneNumbers.opt_out IS NOT NULL'
'sql' => 'phoneNumbers.opt_out = true AND phoneNumbers.opt_out IS NOT NULL',
'leftJoins' => [['phoneNumbers', 'phoneNumbers', ['primary' => 1]]],
],
'= FALSE' => [
'sql' => 'phoneNumbers.opt_out = false OR phoneNumbers.opt_out IS NULL'
'sql' => 'phoneNumbers.opt_out = false OR phoneNumbers.opt_out IS NULL',
'leftJoins' => [['phoneNumbers', 'phoneNumbers', ['primary' => 1]]],
]
],
'orderBy' => 'phoneNumbers.opt_out {direction}'

View File

@@ -35,20 +35,29 @@ class Attachments extends HasChildren
{
$parentRelation = parent::load($linkName, $entityName);
$relation = array(
$entityName => array (
'fields' => array(
$linkName.'Types' => array(
$relation = [
$entityName => [
'fields' => [
$linkName.'Types' => [
'type' => 'jsonObject',
'notStorable' => true,
),
),
),
);
],
],
'relations' => [
$linkName => [
'conditions' => [
'OR' => [
['field' => null],
['field' => $linkName],
],
],
],
],
],
];
$relation = \Espo\Core\Utils\Util::merge($parentRelation, $relation);
return $relation;
}
}

View File

@@ -408,9 +408,15 @@ class Converter
$dbFieldParams['unsigned'] = true;
}
if (isset($fieldParams['binary']) && $fieldParams['binary']) {
$dbFieldParams['platformOptions'] = array(
'collation' => 'utf8mb4_bin',
);
}
if (isset($fieldParams['utf8mb3']) && $fieldParams['utf8mb3']) {
$dbFieldParams['platformOptions'] = array(
'collation' => 'utf8_unicode_ci',
'collation' => (isset($fieldParams['binary']) && $fieldParams['binary']) ? 'utf8_bin' : 'utf8_unicode_ci',
);
}

View File

@@ -251,4 +251,9 @@ class DateTime
return false;
}
public static function getSystemNowString()
{
return date(self::$systemDateTimeFormat);
}
}

View File

@@ -54,7 +54,7 @@ class EntityManager
private $linkForbiddenNameList = ['posts', 'stream', 'subscription', 'followers', 'action', 'null', 'false', 'true'];
private $forbiddenEntityTypeNameList = ['PortalUser', 'ApiUser', 'Timeline', 'About', 'Admin', 'Null', 'False', 'True'];
private $forbiddenEntityTypeNameList = ['Common', 'PortalUser', 'ApiUser', 'Timeline', 'About', 'Admin', 'Null', 'False', 'True'];
public function __construct(Metadata $metadata, Language $language, File\Manager $fileManager, Config $config, Container $container = null)
{

View File

@@ -271,7 +271,7 @@ class FieldManager
$entityDefs = $this->normalizeDefs($scope, $name, $fieldDefs);
if (!empty($entityDefs)) {
if (!empty((array) $entityDefs)) {
$result &= $this->saveCustomEntityDefs($scope, $entityDefs);
$this->isChanged = true;
}
@@ -430,13 +430,15 @@ class FieldManager
return $this->getMetadata()->get('entityDefs'.'.'.$scope.'.fields.'.$name, $default);
}
protected function getCustomFieldDefs($scope, $name)
protected function getCustomFieldDefs($scope, $name, $default = null)
{
$customDefs = $this->getMetadata()->getCustom('entityDefs', $scope, (object) []);
if (isset($customDefs->fields->$name)) {
return (array) $customDefs->fields->$name;
}
return $default;
}
protected function saveCustomEntityDefs($scope, $newDefs)
@@ -529,43 +531,32 @@ class FieldManager
}
}
$actualCustomFieldDefs = $this->getCustomFieldDefs($scope, $name);
$actualCustomFieldDefs = $this->getCustomFieldDefs($scope, $name, []);
$actualFieldDefs = $this->getFieldDefs($scope, $name, []);
$permittedParamList = array_keys($params);
$filteredFieldDefs = $actualCustomFieldDefs ? $actualCustomFieldDefs : [];
$filteredFieldDefs = !empty($actualCustomFieldDefs) ? $actualCustomFieldDefs : [];
foreach ($fieldDefs as $paramName => $paramValue) {
if (in_array($paramName, $permittedParamList)) {
$defaultParamValue = null;
switch ($params[$paramName]['type']) {
case 'bool':
$fieldDefsDefaultValue = array_key_exists('default', $params[$paramName]) ? $params[$paramName]['default'] : false;
$actualValue = array_key_exists($paramName, $actualFieldDefs) ? $actualFieldDefs[$paramName] : $fieldDefsDefaultValue;
if (!Util::areValuesEqual($actualValue, $paramValue)) {
$filteredFieldDefs[$paramName] = $paramValue;
}
$defaultParamValue = false;
break;
}
default:
if (!array_key_exists('default', $params[$paramName]) && !array_key_exists($paramName, $actualFieldDefs)) {
$filteredFieldDefs[$paramName] = $paramValue;
break;
}
$actualValue = array_key_exists($paramName, $actualFieldDefs) ? $actualFieldDefs[$paramName] : $defaultParamValue;
if (array_key_exists('default', $params[$paramName])) {
$actualValue = $params[$paramName]['default'];
}
if (!array_key_exists($paramName, $actualCustomFieldDefs) && !Util::areValuesEqual($actualValue, $paramValue)) {
$filteredFieldDefs[$paramName] = $paramValue;
continue;
}
if (array_key_exists($paramName, $actualFieldDefs)) {
$actualValue = $actualFieldDefs[$paramName];
}
if (!Util::areValuesEqual($actualValue, $paramValue)) {
$filteredFieldDefs[$paramName] = $paramValue;
}
break;
if (array_key_exists($paramName, $actualCustomFieldDefs)) {
$filteredFieldDefs[$paramName] = $paramValue;
}
}
}
@@ -593,7 +584,7 @@ class FieldManager
* @param string $scope
* @param string $fieldName
* @param array $fieldDefs
* @return array
* @return object
*/
protected function normalizeDefs($scope, $fieldName, array $fieldDefs)
{

View File

@@ -28,9 +28,10 @@
************************************************************************/
namespace Espo\Core\Utils;
use \Espo\Core\Utils\Util,
\Espo\Core\Exceptions\NotFound,
\Espo\Core\Exceptions\Error;
use Espo\Core\Utils\Util,
Espo\Core\Exceptions\NotFound,
Espo\Core\Exceptions\Error;
class Language
{
@@ -40,22 +41,15 @@ class Language
private $unifier;
/**
* Data of all languages
*
* @var array
*/
private $data = array();
private $data = [];
private $deletedData = array();
private $deletedData = [];
private $changedData = array();
private $name = 'i18n';
private $changedData = [];
private $currentLanguage = null;
protected $cacheFile = 'data/cache/application/languages/{*}.php';
protected $cacheFile = 'data/cache/application/languages/{language}.php';
protected $defaultLanguage = 'en_US';
@@ -63,11 +57,11 @@ class Language
protected $noCustom = false;
private $paths = array(
'corePath' => 'application/Espo/Resources/i18n',
'modulePath' => 'application/Espo/Modules/{*}/Resources/i18n',
'customPath' => 'custom/Espo/Custom/Resources/i18n',
);
protected $paths = [
'corePath' => 'application/Espo/Resources/i18n/{language}',
'modulePath' => 'application/Espo/Modules/{*}/Resources/i18n/{language}',
'customPath' => 'custom/Espo/Custom/Resources/i18n/{language}',
];
public function __construct($language = null, File\Manager $fileManager, Metadata $metadata, $useCache = false, $noCustom = false)
{
@@ -106,7 +100,8 @@ class Language
return $this->defaultLanguage;
}
public static function detectLanguage($config, $preferences = null) {
public static function detectLanguage(\Espo\Core\Utils\Config $config, $preferences = null)
{
$language = null;
if ($preferences) {
$language = $preferences->get('language');
@@ -127,9 +122,11 @@ class Language
$this->currentLanguage = $language;
}
protected function getLangCacheFile()
protected function getCacheFile(string $language = null) : string
{
$langCacheFile = str_replace('{*}', $this->getLanguage(), $this->cacheFile);
$language = $language ?? $this->getLanguage();
$langCacheFile = str_replace('{language}', $language, $this->cacheFile);
return $langCacheFile;
}
@@ -149,7 +146,7 @@ class Language
public function translate($label, $category = 'labels', $scope = 'Global', $requiredOptions = null)
{
if (is_array($label)) {
$translated = array();
$translated = [];
foreach ($label as $subLabel) {
$translated[$subLabel] = $this->translate($subLabel, $category, $scope, $requiredOptions);
@@ -200,7 +197,7 @@ class Language
$data = $this->getData();
if (!isset($data) || $data === false) {
throw new Error('Language: current language ['.$this->getLanguage().'] does not found');
throw new Error('Language: current language '.$this->getLanguage().' not found');
}
return Util::getValueByKey($data, $key, $returns);
@@ -213,19 +210,19 @@ class Language
/**
* Save changes
*
* @return bool
*/
public function save()
public function save() : bool
{
$language = $this->getLanguage();
$path = $this->paths['customPath'];
$currentLanguage = $this->getLanguage();
$path = str_replace('{language}', $language, $path);
$result = true;
if (!empty($this->changedData)) {
foreach ($this->changedData as $scope => $data) {
if (!empty($data)) {
$result &= $this->getFileManager()->mergeContents(array($path, $currentLanguage, $scope.'.json'), $data, true);
$result &= $this->getFileManager()->mergeContents([$path, $scope.'.json'], $data, true);
}
}
}
@@ -233,7 +230,7 @@ class Language
if (!empty($this->deletedData)) {
foreach ($this->deletedData as $scope => $unsetData) {
if (!empty($unsetData)) {
$result &= $this->getFileManager()->unsetContents(array($path, $currentLanguage, $scope.'.json'), $unsetData, true);
$result &= $this->getFileManager()->unsetContents([$path, $scope.'.json'], $unsetData, true);
}
}
}
@@ -250,19 +247,15 @@ class Language
*/
public function clearChanges()
{
$this->changedData = array();
$this->deletedData = array();
$this->changedData = [];
$this->deletedData = [];
$this->init(true);
}
/**
* Get data of Unifier language files
*
* @return array
*/
protected function getData()
{
$currentLanguage = $this->getLanguage();
if (!isset($this->data[$currentLanguage])) {
$this->init();
}
@@ -345,40 +338,73 @@ class Language
}
}
protected function init($reload = false)
protected function init(bool $reload = false)
{
if ($reload || !file_exists($this->getLangCacheFile()) || !$this->useCache) {
$this->data[$this->currentLanguage] = $this->getLanguageData($this->currentLanguage, $reload);
}
$paths = $this->paths;
if ($this->noCustom) {
unset($paths['customPath']);
}
protected function getDefaultLanguageData(bool $reload = false)
{
return $this->getLanguageData($this->defaultLanguage, $reload);
}
$fullData = $this->getUnifier()->unify($this->name, $paths, true);
protected function getLanguageData(string $language, bool $reload = false)
{
if ($reload || !isset($this->data[$language])) {
$result = true;
foreach ($fullData as $i18nName => $i18nData) {
$cacheFile = $this->getCacheFile($language);
if ($i18nName != $this->defaultLanguage) {
$i18nData = Util::merge($fullData[$this->defaultLanguage], $i18nData);
if (!$this->useCache || !file_exists($cacheFile) || $reload) {
$paths = $this->paths;
foreach ($paths as $k => &$path) {
$path = str_replace('{language}', $language, $path);
}
$this->data[$i18nName] = $i18nData;
if ($this->noCustom) {
unset($paths['customPath']);
}
$data = $this->getUnifier()->unify('i18n', $paths, true);
if (is_array($data)) {
$this->sanitizeData($data);
}
if ($language != $this->defaultLanguage) {
$data = Util::merge($this->getDefaultLanguageData($reload), $data);
}
$this->data[$language] = $data;
if ($this->useCache) {
$i18nCacheFile = str_replace('{*}', $i18nName, $this->cacheFile);
$result &= $this->getFileManager()->putPhpContents($i18nCacheFile, $i18nData);
$putResult = $this->getFileManager()->putPhpContents($cacheFile, $data);
if (!$putResult) {
$GLOBALS['log']->error("Language: Could not store cache file for {$language}");
}
}
}
if ($result == false) {
throw new Error('Language::init() - Cannot save data to a cache');
if ($this->useCache) {
$this->data[$language] = $this->getFileManager()->getPhpContents($cacheFile);
}
}
$currentLanguage = $this->getLanguage();
if (empty($this->data[$currentLanguage])) {
$this->data[$currentLanguage] = $this->getFileManager()->getPhpContents($this->getLangCacheFile());
return $this->data[$language] ?? [];
}
protected function sanitizeData(array &$data)
{
foreach ($data as $key => &$subData) {
if (is_array($subData)) {
$this->sanitizeData($subData);
} else {
if (is_string($subData)) {
$subData = str_replace('<', '&lt;', $subData);
$subData = str_replace('>', '&gt;', $subData);
}
}
}
}
}

View File

@@ -52,8 +52,6 @@ class ThemeManager
public function getStylesheet()
{
return $this->metadata->get('themes.' . $this->getName() . '.stylesheet', 'client/css/espo.css');
return $this->metadata->get(['themes', $this->getName(), 'stylesheet'], 'client/css/espo/espo.css');
}
}

View File

@@ -711,4 +711,102 @@ class Util
return $v1 === $v2;
}
public static function mbUpperCaseFirst(string $string)
{
if (!$string) return $string;
$length = mb_strlen($string);
$firstChar = mb_substr($string, 0, 1);
$then = mb_substr($string, 1, $length - 1);
return mb_strtoupper($firstChar) . $then;
}
public static function mbLowerCaseFirst(string $string)
{
if (!$string) return $string;
$length = mb_strlen($string);
$firstChar = mb_substr($string, 0, 1);
$then = mb_substr($string, 1, $length - 1);
return mb_strtolower($firstChar) . $then;
}
/**
* Sanitize Html code
* @param string $text
* @param array $permittedHtmlTags - Allows only html tags without parameters like <p></p>, <br>, etc.
* @return string
*/
public static function sanitizeHtml($text, $permittedHtmlTags = ['p', 'br', 'b', 'strong', 'pre'])
{
if (is_array($text)) {
foreach ($text as $key => &$value) {
$value = self::sanitizeHtml($value, $permittedHtmlTags);
}
return $text;
}
$sanitized = htmlspecialchars($text, \ENT_QUOTES | \ENT_HTML5, 'UTF-8');
foreach ($permittedHtmlTags as $htmlTag) {
$sanitized = preg_replace('/&lt;(\/)?(' . $htmlTag . ')&gt;/i', '<$1$2>', $sanitized);
}
return $sanitized;
}
public static function urlAddParam($url, $paramName, $paramValue)
{
$urlQuery = parse_url($url, \PHP_URL_QUERY);
if (!$urlQuery) {
$params = [
$paramName => $paramValue
];
$url = trim($url);
$url = preg_replace('/\/\?$/', '', $url);
$url = preg_replace('/\/$/', '', $url);
return $url . '/?' . http_build_query($params);
}
parse_str($urlQuery, $params);
if (!isset($params[$paramName]) || $params[$paramName] != $paramValue) {
$params[$paramName] = $paramValue;
return str_replace($urlQuery, http_build_query($params), $url);
}
return $url;
}
public static function urlRemoveParam($url, $paramName, $suffix = '')
{
$urlQuery = parse_url($url, \PHP_URL_QUERY);
if ($urlQuery) {
parse_str($urlQuery, $params);
if (isset($params[$paramName])) {
unset($params[$paramName]);
$newUrl = str_replace($urlQuery, http_build_query($params), $url);
if (empty($params)) {
$newUrl = preg_replace('/\/\?$/', '', $newUrl);
$newUrl = preg_replace('/\/$/', '', $newUrl);
$newUrl .= $suffix;
}
return $newUrl;
}
}
return $url;
}
}

View File

@@ -80,9 +80,10 @@ class Pusher implements WampServerInterface
if ($checkCommand) {
$checkResult = shell_exec($checkCommand);
if ($checkResult !== 'true') {
if ($this->isDebugMode) $this->log("check access failed for topic {$topicId} for user {$userId}");
if ($this->isDebugMode) $this->log("{$connectionId}: check access failed for topic {$topicId} for user {$userId}");
return;
}
if ($this->isDebugMode) $this->log("{$connectionId}: check access succeed for topic {$topicId} for user {$userId}");
}
if (!in_array($topicId, $this->connectionIdTopicIdListMap[$connectionId])) {
@@ -110,20 +111,37 @@ class Pusher implements WampServerInterface
if ($index !== false) {
if ($this->isDebugMode) $this->log("{$connectionId}: remove topic {$topicId} for user {$userId}");
unset($this->connectionIdTopicIdListMap[$connectionId][$index]);
$this->connectionIdTopicIdListMap[$connectionId][$index] = array_values($this->connectionIdTopicIdListMap[$connectionId][$index]);
$this->connectionIdTopicIdListMap[$connectionId] = array_values($this->connectionIdTopicIdListMap[$connectionId]);
}
}
}
protected function getCategoryData(string $topicId) : array
{
$arr = explode('.', $topicId);
$category = $arr[0];
if (array_key_exists($category, $this->categoriesData)) {
$data = $this->categoriesData[$category];
} else if (array_key_exists($topicId, $this->categoriesData)) {
$data = $this->categoriesData[$topicId];
} else {
$data = [];
}
return $data;
}
protected function getParamsFromTopicId(string $topicId) : array
{
$arr = explode('.', $topicId);
$category = $arr[0];
$data = $this->getCategoryData($topicId);
$params = [];
if (array_key_exists('paramList', $this->categoriesData[$category])) {
foreach ($this->categoriesData[$category]['paramList'] as $i => $item) {
if (array_key_exists('paramList', $data)) {
foreach ($data['paramList'] as $i => $item) {
if (isset($arr[$i + 1])) {
$params[$item] = $arr[$i + 1];
} else {
@@ -146,10 +164,12 @@ class Pusher implements WampServerInterface
return null;
}
$category = $this->getTopicCategory($topic);
if (!array_key_exists('accessCheckCommand', $this->categoriesData[$category])) return null;
$data = $this->getCategoryData($topic->getId());
if (!array_key_exists('accessCheckCommand', $data)) return null;
$command = $this->phpExecutablePath . " command.php " . $data['accessCheckCommand'];
$command = $this->phpExecutablePath . " command.php " . $this->categoriesData[$category]['accessCheckCommand'];
foreach ($params as $key => $value) {
$command = str_replace(':' . $key, $value, $command);
}

View File

@@ -166,7 +166,7 @@ return [
'cleanupAuthTokenPeriod' => '1 month',
'currencyFormat' => 2,
'currencyDecimalPlaces' => 2,
'aclStrictMode' => false,
'aclStrictMode' => true,
'aclAllowDeleteCreated' => false,
'aclAllowDeleteCreatedThresholdPeriod' => '24 hours',
'inlineAttachmentUploadMaxSize' => 20,

View File

@@ -101,6 +101,7 @@ return [
'portalUserLimit',
'stylesheet',
'userItems',
'globalItems',
'internalSmtpServer',
'internalSmtpPort',
'internalSmtpAuth',
@@ -193,6 +194,11 @@ return [
'adminNotificationsNewExtensionVersion',
'leadCaptureAllowOrigin',
'cronDisabled',
'defaultPortalId',
'cleanupDeletedRecords',
'authTokenPreventConcurrent',
'emailParser',
'latestVersion',
],
'superAdminItems' => [
'jobMaxPortion',
@@ -215,10 +221,30 @@ return [
'superAdminSystemItems' => [
],
'userItems' => [
'outboundEmailFromAddress',
'outboundEmailFromName',
'outboundEmailBccAddress',
'integrations',
],
'globalItems' => [
'cacheTimestamp',
'language',
'isDeveloperMode',
'dateFormat',
'timeFormat',
'timeZone',
'decimalMark',
'weekStart',
'thousandSeparator',
'companyLogoId',
'applicationName',
'jsLibs',
'maintenanceMode',
'siteUrl',
'useCache',
'useCacheInDeveloperMode',
'isDeveloperMode',
'version',
'useWebSocket',
'webSocketUrl',
'aclAllowDeleteCreated',
],
'isInstalled' => false,
'ldapUserNameAttribute' => 'sAMAccountName',
@@ -256,4 +282,5 @@ return [
'requiredMariadbVersion' => '5.5.3',
'recommendedMariadbParams' => [],
'ldapPortalUserLdapAuth' => false,
'aclStrictMode' => true,
];

View File

@@ -37,6 +37,13 @@ class Attachment extends \Espo\Core\EntryPoints\Base
{
public static $authRequired = true;
protected $allowedFileTypes = [
'image/jpeg',
'image/png',
'image/gif',
'image/webp',
];
public function run()
{
$id = $_GET['id'];
@@ -60,8 +67,14 @@ class Attachment extends \Espo\Core\EntryPoints\Base
throw new NotFound();
}
$fileType = $attachment->get('type');
if (!in_array($fileType, $this->allowedFileTypes)) {
throw new Forbidden("EntryPoint Attachment: Not allowed type {$fileType}.");
}
if ($attachment->get('type')) {
header('Content-Type: ' . $attachment->get('type'));
header('Content-Type: ' . $fileType);
}
header('Pragma: public');
@@ -70,4 +83,3 @@ class Attachment extends \Espo\Core\EntryPoints\Base
exit;
}
}

View File

@@ -30,6 +30,7 @@
namespace Espo\EntryPoints;
use \Espo\Core\Exceptions\NotFound;
use \Espo\Core\Exceptions\NotFoundSilent;
use \Espo\Core\Exceptions\Forbidden;
use \Espo\Core\Exceptions\BadRequest;
use \Espo\Core\Exceptions\Error;
@@ -84,7 +85,7 @@ class Image extends \Espo\Core\EntryPoints\Base
$attachment = $this->getEntityManager()->getEntity('Attachment', $id);
if (!$attachment) {
throw new NotFound();
throw new NotFoundSilent();
}
if (!$disableAccessCheck && !$this->getAcl()->checkEntity($attachment)) {
@@ -98,7 +99,7 @@ class Image extends \Espo\Core\EntryPoints\Base
$fileType = $attachment->get('type');
if (!file_exists($filePath)) {
throw new NotFound();
throw new NotFoundSilent();
}
if (!in_array($fileType, $this->allowedFileTypes)) {

View File

@@ -428,7 +428,9 @@ class Cleanup extends \Espo\Core\Jobs\Base
{
if (!$this->getConfig()->get('cleanupDeletedRecords')) return;
$period = '-' . $this->getConfig()->get('cleanupDeletedRecordsPeriod', $this->cleanupDeletedRecordsPeriod);
$datetime = new \DateTime('-' . $period);
$datetime = new \DateTime($period);
$serviceFactory = $this->getServiceFactory();
$scopeList = array_keys($this->getMetadata()->get(['scopes']));
foreach ($scopeList as $scope) {
@@ -443,6 +445,15 @@ class Cleanup extends \Espo\Core\Jobs\Base
if (!method_exists($repository, 'select')) continue;
if (!method_exists($repository, 'deleteFromDb')) continue;
$hasCleanupMethod = false;
$service = null;
if ($serviceFactory->checkExists($scope)) {
$service = $serviceFactory->create($scope);
if (method_exists($service, 'cleanup')) {
$hasCleanupMethod = true;
}
}
$whereClause = [
'deleted' => 1,
];
@@ -455,6 +466,13 @@ class Cleanup extends \Espo\Core\Jobs\Base
$deletedEntityList = $repository->select(['id', 'deleted'])->where($whereClause)->find(['withDeleted' => true]);
foreach ($deletedEntityList as $e) {
if ($hasCleanupMethod) {
try {
$service->cleanup($e->id);
} catch (\Throwable $e) {
$GLOBALS['log']->error("Cleanup job: Cleanup scope {$scope}: " . $e->getMessage());
}
}
$this->cleanupDeletedEntity($e);
}
}

View File

@@ -31,6 +31,8 @@ namespace Espo\Modules\Crm\Business\Event;
use \Espo\ORM\Entity;
use Espo\Core\Utils\Util;
class Invitations
{
protected $entityManager;
@@ -140,7 +142,7 @@ class Invitations
}
$data['entityType'] = $this->language->translate($entity->getEntityType(), 'scopeNames');
$data['entityTypeLowerFirst'] = lcfirst($data['entityType']);
$data['entityTypeLowerFirst'] = Util::mbLowerCaseFirst($data['entityType']);
$htmlizer = new \Espo\Core\Htmlizer\Htmlizer($this->fileManager, $dateTime, $this->number, null);

View File

@@ -31,6 +31,8 @@ namespace Espo\Modules\Crm\Business\Reminder;
use \Espo\ORM\Entity;
use Espo\Core\Utils\Util;
class EmailReminder
{
protected $entityManager;
@@ -79,7 +81,7 @@ class EmailReminder
protected function parseInvitationTemplate($contents, $entity, $user = null)
{
$contents = str_replace('{eventType}', strtolower($this->language->translate($entity->getEntityName(), 'scopeNames')), $contents);
$contents = str_replace('{eventType}', mb_strtolower($this->language->translate($entity->getEntityName(), 'scopeNames')), $contents);
$preferences = $this->getEntityManager()->getEntity('Preferences', $user->id);
$timezone = $preferences->get('timeZone');
@@ -141,7 +143,7 @@ class EmailReminder
$data['recordUrl'] = $recordUrl;
$data['entityType'] = $this->getLanguage()->translate($entity->getEntityType(), 'scopeNames');
$data['entityTypeLowerFirst'] = lcfirst($data['entityType']);
$data['entityTypeLowerFirst'] = Util::mbLowerCaseFirst($data['entityType']);
if ($user) {
$data['userName'] = $user->get('name');

View File

@@ -88,12 +88,12 @@ class SubscribeAgain extends \Espo\Core\EntryPoints\Base
}
$link = null;
$m = array(
$m = [
'Account' => 'accounts',
'Contact' => 'contacts',
'Lead' => 'leads',
'User' => 'users'
);
];
if (!empty($m[$target->getEntityType()])) {
$link = $m[$target->getEntityType()];
}
@@ -115,7 +115,11 @@ class SubscribeAgain extends \Espo\Core\EntryPoints\Base
}
$data = [
'queueItemId' => $queueItemId
'actionData' => [
'queueItemId' => $queueItemId,
],
'view' => $this->getMetadata()->get(['clientDefs', 'Campaign', 'subscribeView']),
'template' => $this->getMetadata()->get(['clientDefs', 'Campaign', 'subscribeTemplate']),
];
$runScript = "

View File

@@ -88,12 +88,12 @@ class Unsubscribe extends \Espo\Core\EntryPoints\Base
}
$link = null;
$m = array(
$m = [
'Account' => 'accounts',
'Contact' => 'contacts',
'Lead' => 'leads',
'User' => 'users'
);
];
if (!empty($m[$target->getEntityType()])) {
$link = $m[$target->getEntityType()];
}
@@ -115,7 +115,11 @@ class Unsubscribe extends \Espo\Core\EntryPoints\Base
}
$data = [
'queueItemId' => $queueItemId
'actionData' => [
'queueItemId' => $queueItemId,
],
'view' => $this->getMetadata()->get(['clientDefs', 'Campaign', 'unsubscribeView']),
'template' => $this->getMetadata()->get(['clientDefs', 'Campaign', 'unsubscribeTemplate']),
];
$runScript = "
@@ -137,4 +141,3 @@ class Unsubscribe extends \Espo\Core\EntryPoints\Base
}
}
}

View File

@@ -33,7 +33,17 @@ use Espo\ORM\Entity;
class Lead extends \Espo\Core\ORM\Repositories\RDB
{
public function afterSave(Entity $entity, array $options = array())
public function beforeSave(Entity $entity, array $options = [])
{
if (!$entity->get('convertedAt') && $entity->get('status') === 'Converted' && $entity->isAttributeChanged('status')) {
$convertedAt = date('Y-m-d H:i:s');
$entity->set('convertedAt', $convertedAt);
}
parent::beforeSave($entity, $options);
}
public function afterSave(Entity $entity, array $options = [])
{
parent::afterSave($entity, $options);

View File

@@ -22,6 +22,7 @@
"createdAccount": "Account",
"createdContact": "Contact",
"createdOpportunity": "Opportunity",
"convertedAt": "Converted At",
"campaign": "Campaign",
"targetLists": "Target Lists",
"targetList": "Target List",

View File

@@ -1,6 +1,6 @@
{
"fields": {
"name": "Record Naam",
"name": "Naam",
"emailAddress": "E-mail",
"phoneNumber": "Telefoon",
"billingAddress": "Factuur Adres",
@@ -8,6 +8,7 @@
"description": "Beschrijving",
"industry": "Industrie",
"contactRole": "Titel",
"campaign": "Campagne",
"targetLists": "Doellijsten",
"targetList": "Doellijst",
"originalLead": "Oorspronkelijke lead",
@@ -16,10 +17,13 @@
"links": {
"contacts": "Contacten",
"opportunities": "Kansen",
"cases": "Casus",
"cases": "Tickets",
"documents": "Documenten",
"emailsPrimary": "E-mails (expanded)",
"targetLists": "Doellijsten",
"portalUsers": "Portal-gebruikers",
"campaignLogRecords": "Campagne log",
"campaign": "Campagne",
"portalUsers": "Portaal-gebruikers",
"originalLead": "Oorspronkelijke lead"
},
"options": {
@@ -33,20 +37,19 @@
"Education": "Onderwijs",
"Electronics": "Electronica",
"Insurance": "Verzekeringen",
"Aerospace": "ruimte",
"Aerospace": "Ruimtevaart",
"Architecture": "Architectuur",
"Construction": "Bouw",
"Defense": "Verdediging",
"Defense": "Defensie",
"Creative": "Creatief",
"Culture": "Cultuur",
"Consulting": "Overleg plegen",
"Consulting": "Consultancy",
"Electric Power": "Elektrische energie",
"Hospitality": "Gastvrijheid",
"Mass Media": "Massa media",
"Mass Media": "Media",
"Mining": "Mijnbouw",
"Music": "Muziek",
"Petroleum": "petroleum",
"Retail": "Kleinhandel",
"Retail": "Retailhandel",
"Shipping": "Verzenden",
"Support": "Ondersteuning",
"Testing, Inspection & Certification": "Testen, inspectie en certificering",
@@ -55,8 +58,8 @@
}
},
"labels": {
"Create Account": "Klant Aanmaken",
"Copy Billing": "Kopieer van Factuur",
"Create Account": "Relatie Aanmaken",
"Copy Billing": "Kopie factuur",
"Set Primary": "Primair instellen"
},
"presetFilters": {

View File

@@ -10,6 +10,7 @@
"users": "Gebruikers",
"contacts": "Contacten",
"reminders": "Herineringen",
"account": "Relatie",
"acceptanceStatus": "Acceptatiestatus"
},
"options": {

View File

@@ -8,19 +8,20 @@
"budgetConverted": "Budget (omgezet)",
"contactsTemplate": "Contacten-sjabloon",
"leadsTemplate": "Leads sjabloon",
"accountsTemplate": "Accounts-sjabloon",
"accountsTemplate": "Relaties-sjabloon",
"usersTemplate": "Gebruikers sjabloon",
"mailMergeOnlyWithAddress": "Records overslaan zonder ingevuld adres",
"budgetCurrency": "Budgetvaluta"
},
"links": {
"targetLists": "Doellijsten",
"accounts": "Klanten",
"accounts": "Relaties",
"contacts": "Contacten",
"opportunities": "Kansen",
"massEmails": "Mass E-mails",
"contactsTemplate": "Contacten-sjabloon",
"leadsTemplate": "Leads sjabloon",
"accountsTemplate": "Accounts-sjabloon",
"accountsTemplate": "Relaties-sjabloon",
"usersTemplate": "Gebruikers sjabloon"
},
"options": {
@@ -35,7 +36,7 @@
},
"labels": {
"Target Lists": "Doellijsten",
"Mass Emails": "Massale e-mails",
"Mass Emails": "Massale E-mails",
"Email Templates": "E-mailsjablonen",
"Unsubscribe again": "Afmelden opnieuw",
"Subscribe again": "Abonneer opnieuw",

View File

@@ -1,6 +1,8 @@
{
"fields": {
"name": "Record Naam",
"name": "Naam",
"number": "Nummer",
"account": "Relatie",
"contacts": "Contacten",
"priority": "Prioriteit",
"description": "Beschrijving",
@@ -8,9 +10,10 @@
"inboundEmail": "Groeps e-mailaccount"
},
"links": {
"account": "Relatie",
"Contacts": "Contacten",
"emails": "E-mails",
"articles": "Knowledge Base-artikelen",
"articles": "Kennisbank-artikelen",
"attachments": "Bijlagen",
"inboundEmail": "Groeps e-mailaccount"
},
@@ -21,7 +24,7 @@
"Pending": "In afwachting",
"Closed": "Gesloten",
"Rejected": "Afgewezen",
"Duplicate": "Duplicaat"
"Duplicate": "Dubbel"
},
"priority": {
"Low": "Laag",
@@ -34,7 +37,8 @@
}
},
"labels": {
"Close": "Sluit",
"Close": "Afsluiten",
"Reject": "Afwijzen",
"Closed": "Gesloten",
"Rejected": "Afgewezen"
},

View File

@@ -3,28 +3,31 @@
"name": "Record Naam",
"emailAddress": "E-mail",
"accountRole": "Titel",
"accounts": "Klanten",
"account": "Relatie",
"accounts": "Relaties",
"phoneNumber": "Telefoon",
"accountType": "Klant Type",
"accountType": "Relatie Type",
"doNotCall": "Niet Bellen",
"address": "Adres",
"opportunityRole": "Functie Kansen",
"description": "Beschrijving",
"targetLists": "Doellijsten",
"portalUser": "Portalgebruiker",
"portalUser": "Portaalgebruiker",
"originalLead": "Oorspronkelijke lead",
"acceptanceStatus": "Acceptatiestatus",
"accountIsInactive": "account inactief",
"accountIsInactive": "Relatie inactief",
"acceptanceStatusMeetings": "Acceptatiestatus (vergaderingen)",
"acceptanceStatusCalls": "Acceptatiestatus (oproepen)",
"title": "Primair Account titel"
"title": "Primair relatie titel"
},
"links": {
"opportunities": "Kansen",
"cases": "Casus",
"cases": "Tickets",
"targetLists": "Doellijsten",
"accounts": "Klanten",
"portalUser": "Portalgebruiker",
"account": "Relatie (Primary)",
"accounts": "Relatie",
"casesPrimary": "Tickets (Primary)",
"portalUser": "Portaalgebruiker",
"originalLead": "Oorspronkelijke lead",
"documents": "documenten",
"tasksPrimary": "Taken (uitgebreid)"
@@ -39,8 +42,8 @@
}
},
"presetFilters": {
"portalUsers": "Portal-gebruikers",
"notPortalUsers": "Geen portalgebruikers",
"portalUsers": "Portaal-gebruikers",
"notPortalUsers": "Geen portaalgebruikers",
"accountActive": "Actief"
}
}

View File

@@ -8,10 +8,10 @@
"publishDate": "Publicatiedatum",
"expirationDate": "Vervaldatum",
"description": "Beschrijving",
"accounts": "Klanten"
"accounts": "Relatie"
},
"links": {
"accounts": "Klanten",
"accounts": "Relatie",
"opportunities": "Kansen",
"leads": "leads",
"contacts": "Contacten"

View File

@@ -4,29 +4,33 @@
"contacts": "Contacten",
"opportunities": "Kansen",
"emails": "E-mails",
"accounts": "Klanten",
"cases": "Casus",
"accounts": "Relaties",
"cases": "Tickets",
"documents": "Documenten",
"account": "Relatie",
"opportunity": "Kans"
},
"scopeNames": {
"Account": "Relatie",
"Opportunity": "Kans",
"Meeting": "Vergadering",
"Calendar": "Kalender",
"Call": "Tel. Gesprek",
"Task": "Taak",
"Case": "Ticket",
"Activities": "Activiteiten",
"KnowledgeBaseArticle": "Kennisbank-artikel",
"KnowledgeBaseCategory": "Kennisbank-categorie"
},
"scopeNamesPlural": {
"Account": "Klanten",
"Account": "Relaties",
"Contact": "Contacten",
"Opportunity": "Kansen",
"Calendar": "Kalender",
"Case": "Casus",
"Case": "Tickets",
"Document": "Documenten",
"TargetList": "Doellijsten",
"MassEmail": "Mass E-mails",
"Activities": "Activiteiten",
"KnowledgeBaseArticle": "Kennisbank",
"KnowledgeBaseCategory": "Kennisbank-categorieën"
@@ -35,7 +39,7 @@
"Leads": "Mijn Leads",
"Opportunities": "Mijn Kansen",
"Tasks": "Mijn Taken",
"Cases": "Mijn Casus",
"Cases": "Mijn Tickets",
"Calendar": "Kalender",
"Calls": "Mijn Tel.gesprekken",
"Meetings": "Mijn Afspraken",

View File

@@ -15,16 +15,16 @@
"publishDate": "Publiceer datum",
"expirationDate": "vervaldatum",
"description": "Beschrijving",
"body": "Lichaam",
"body": "Inhoud",
"categories": "Categorieën",
"language": "Taal",
"portals": "portals"
"portals": "portalen"
},
"links": {
"cases": "Casus",
"cases": "Tickets",
"opportunities": "Kansen",
"categories": "Categorieën",
"portals": "portals"
"portals": "portalen"
},
"options": {
"status": {
@@ -41,6 +41,6 @@
"published": "Gepubliceerd"
},
"tooltips": {
"portals": "Artikel is alleen beschikbaar in bepaalde portals."
"portals": "Artikel is alleen beschikbaar in bepaalde portalen."
}
}

View File

@@ -10,13 +10,14 @@
"emailAddress": "E-mail",
"title": "Titel",
"phoneNumber": "Telefoon",
"accountName": "Naam Klant",
"accountName": "Relatie naam",
"doNotCall": "Niet Bellen",
"address": "Adres",
"source": "Bron",
"opportunityAmount": "Bedrag Kansen",
"opportunityAmountConverted": "Bedrag Kans (geconverteerd)",
"description": "Beschrijving",
"createdAccount": "Relatie",
"createdOpportunity": "Kans",
"targetLists": "Doellijsten",
"industry": "Industrie",
@@ -27,8 +28,9 @@
},
"links": {
"targetLists": "Doellijsten",
"createdAccount": "Relatie",
"createdOpportunity": "Kans",
"cases": "Casus",
"cases": "Tickets",
"documents": "documenten"
},
"options": {

View File

@@ -1,6 +1,7 @@
{
"fields": {
"name": "Record Naam",
"storeSentEmails": "Opslaan verzonden E-mails",
"startAt": "Start Datum",
"fromAddress": "Van Adres",
"fromName": "Van Naam",
@@ -28,7 +29,7 @@
"storeSentEmails": "E-mails worden opgeslagen in CRM."
},
"presetFilters": {
"actual": "werkelijk",
"actual": "Werkelijk",
"complete": "Compleet"
},
"labels": {

View File

@@ -9,6 +9,7 @@
"users": "Gebruikers",
"contacts": "Contacten",
"reminders": "Herineringen",
"account": "Relatie",
"acceptanceStatus": "Acceptatiestatus",
"dateStartDate": "Startdatum (de hele dag)",
"dateEndDate": "Datum einde (hele dag)",

View File

@@ -1,6 +1,7 @@
{
"fields": {
"name": "Record Naam",
"account": "Relatie",
"stage": "Stadium",
"amount": "Aantal",
"probability": "Waarschijnlijkheid, %",

View File

@@ -9,8 +9,9 @@
"isOptedOut": "Is afgemeld"
},
"links": {
"accounts": "Klanten",
"contacts": "Contacten"
"accounts": "Relaties",
"contacts": "Contacten",
"massEmails": "Mass E-mails"
},
"options": {
"type": {

View File

@@ -6,11 +6,13 @@
"priority": "Prioriteit",
"description": "Beschrijving",
"isOverdue": "Te Laat",
"account": "Relatie",
"attachments": "Bijlagen",
"reminders": "herinneringen"
"reminders": "Herinneringen"
},
"links": {
"attachments": "Bijlagen"
"attachments": "Bijlagen",
"account": "Relatie"
},
"options": {
"status": {
@@ -34,6 +36,6 @@
"completed": "Voltooid",
"todays": "Huidig",
"overdue": "Laat",
"deferred": "uitgestelde"
"deferred": "Uitgestelde"
}
}

View File

@@ -2,7 +2,6 @@
"fields": {
"name": "Nazwa",
"emailAddress": "E-mail",
"title": "Tytuł",
"accountRole": "Tytuł",
"account": "Klient",
"accounts": "Klienci",
@@ -31,7 +30,6 @@
},
"options": {
"opportunityRole": {
"": "--NIC--",
"Decision Maker": "Osoba Decyzyjna",
"Evaluator": "Oceniający",
"Influencer": "Wpływający"

View File

@@ -1,67 +1,65 @@
{
"fields": {
"name": "Nome",
"emailAddress": "E-mail",
"website": "Website",
"phoneNumber": "Telefone",
"billingAddress": "Endereço de Cobrança",
"shippingAddress": "Endereço de Entrega",
"description": "Descrição",
"sicCode": "CNPJ",
"industry": "Indústria",
"type": "Tipo",
"contactRole": "Regra",
"campaign": "Campanha"
},
"links": {
"contacts": "Contatos",
"opportunities": "Oportunidades",
"cases": "Atendimentos",
"documents": "Documentos",
"meetingsPrimary": "Reuniões (Interno)",
"callsPrimary": "Ligações (Interno)",
"tasksPrimary": "Tarefas (Interno)",
"targetLists": "Lista de alvos",
"campaignLogRecords": "Log da Campanha"
},
"options": {
"type": {
"Customer": "Cliente",
"Investor": "Investidor",
"Partner": "Parceiro",
"Reseller": "Revendedor"
},
"industry": {
"Agriculture": "Agricultura",
"Advertising": "Publicidade",
"Apparel & Accessories": "Apparel & Accessories",
"Automotive": "Automotiva",
"Banking": "Banco",
"Biotechnology": "Biotecnologia",
"Chemical": "Química",
"Computer": "Computadores",
"Education": "Educação",
"Electronics": "Electrônicos",
"Entertainment & Leisure": "Entertainment & Leisure",
"Finance": "Finanças",
"Food & Beverage": "Alimentação",
"Grocery": "Grocery",
"Insurance": "Insurance",
"Legal": "Legal",
"Publishing": "Publishing",
"Real Estate": "Real Estate",
"Service": "Service",
"Sports": "Sports",
"Software": "Software",
"Technology": "Technology",
"Telecommunications": "Telecommunications",
"Television": "Television",
"Transportation": "Transportation",
"Venture Capital": "Venture Capital"
}
},
"labels": {
"Create Account": "Criar Conta",
"Copy Billing": "Copiar Cobrança"
}
}
"fields": {
"name": "Nome",
"emailAddress": "E-mail",
"phoneNumber": "Telefone",
"billingAddress": "Endereço de Cobrança",
"shippingAddress": "Endereço de Entrega",
"description": "Descrição",
"sicCode": "CNPJ",
"industry": "Indústria",
"type": "Tipo",
"contactRole": "Regra",
"campaign": "Campanha",
"targetLists": "Listas de Alvo",
"targetList": "Lista de Alvo",
"contactIsInactive": "Inativo"
},
"links": {
"contacts": "Contatos",
"opportunities": "Oportunidades",
"cases": "Atendimentos",
"documents": "Documentos",
"meetingsPrimary": "Reuniões (Interno)",
"callsPrimary": "Ligações (Interno)",
"tasksPrimary": "Tarefas (Interno)",
"targetLists": "Lista de alvos",
"campaignLogRecords": "Log da Campanha",
"campaign": "Campanha",
"portalUsers": "Usuários de Portal"
},
"options": {
"type": {
"Customer": "Cliente",
"Investor": "Investidor",
"Partner": "Parceiro",
"Reseller": "Revendedor"
},
"industry": {
"Agriculture": "Agricultura",
"Advertising": "Publicidade",
"Automotive": "Automotiva",
"Banking": "Banco",
"Biotechnology": "Biotecnologia",
"Building Materials & Equipment": "Materiais de Construção e Equipamento",
"Chemical": "Química",
"Computer": "Computadores",
"Education": "Educação",
"Electronics": "Electrônicos",
"Energy": "Energia",
"Finance": "Finanças",
"Food & Beverage": "Alimentação",
"Healthcare": "Plano de Saúde",
"Travel": "Viagem"
}
},
"labels": {
"Create Account": "Criar Conta",
"Copy Billing": "Copiar Cobrança",
"Set Primary": "Definir Primário"
},
"presetFilters": {
"customers": "Clientes",
"partners": "Parceiros"
}
}

View File

@@ -1,5 +1,5 @@
{
"layouts": {
"detailConvert": "Converter Lead"
}
}
"layouts": {
"detailConvert": "Converter Lead"
}
}

View File

@@ -1,13 +1,20 @@
{
"modes": {
"month": "Mês",
"week": "Semana",
"day": "Dia",
"agendaWeek": "Semana",
"agendaDay": "Dia"
},
"labels": {
"Today": "Hoje",
"Create": "Criar"
}
}
"modes": {
"month": "Mês",
"week": "Semana",
"agendaWeek": "Semana",
"day": "Dia",
"agendaDay": "Dia",
"timeline": "Linha do Tempo"
},
"labels": {
"Today": "Hoje",
"Create": "Criar",
"Shared": "Compartilhado",
"Add User": "Adicionar Usuário",
"current": "atual",
"time": "tempo",
"User List": "Lista de Usuário",
"Manage Users": "Gerenciar Usuários"
}
}

View File

@@ -1,47 +1,43 @@
{
"fields": {
"name": "Nome",
"parent": "Relação",
"status": "Status",
"dateStart": "Data de Início",
"dateEnd": "Data Final",
"direction": "Direção",
"duration": "Duração",
"description": "Descrição",
"users": "Usuários",
"contacts": "Contatos",
"leads": "Leads",
"reminders": "Lembretes",
"account": "Conta"
"fields": {
"name": "Nome",
"parent": "Relação",
"dateStart": "Data de Início",
"dateEnd": "Data Final",
"direction": "Direção",
"duration": "Duração",
"description": "Descrição",
"users": "Usuários",
"contacts": "Contatos",
"reminders": "Lembretes",
"account": "Conta"
},
"options": {
"status": {
"Planned": "Planejado",
"Held": "Realizada",
"Not Held": "Não Realizada"
},
"links": {
"direction": {
"Outbound": "Saída",
"Inbound": "Entrada"
},
"options": {
"status": {
"Planned": "Planejado",
"Held": "Realizada",
"Not Held": "Não Realizada"
},
"direction": {
"Outbound": "Saída",
"Inbound": "Entrada"
},
"acceptanceStatus": {
"None": "Nenhum",
"Accepted": "Aceita",
"Declined": "Rejeitada",
"Tentative": "Tentativa"
}
},
"labels": {
"Create Call": "Criar Ligação",
"Set Held": "Marcar como realizada",
"Set Not Held": "Marcar como não realizada",
"Send Invitations": "Enviar Convites"
},
"presetFilters": {
"planned": "Planejado",
"held": "Realizado",
"todays": "Hoje"
}
}
"acceptanceStatus": {
"None": "Nenhum",
"Accepted": "Aceita",
"Declined": "Rejeitada",
"Tentative": "Tentativa"
}
},
"labels": {
"Create Call": "Criar Ligação",
"Set Held": "Marcar como realizada",
"Set Not Held": "Marcar como não realizada",
"Send Invitations": "Enviar Convites"
},
"presetFilters": {
"planned": "Planejado",
"held": "Realizado",
"todays": "Hoje"
}
}

View File

@@ -1,54 +1,49 @@
{
"fields": {
"name": "Nome",
"description": "Descrição",
"status": "Status",
"type": "Tipo",
"startDate": "Data de início",
"endDate": "Data de fim",
"targetLists": "Lista de alvos",
"sentCount": "Enviar",
"openedCount": "Abertos",
"clickedCount": "Clicados",
"optedOutCount": "Cancelamentos",
"bouncedCount": "Bounces",
"hardBouncedCount": "Hard Bounce",
"softBouncedCount": "Soft Bounce",
"leadCreatedCount": "Leads Criados",
"revenue": "Receita"
"fields": {
"name": "Nome",
"description": "Descrição",
"type": "Tipo",
"startDate": "Data de início",
"endDate": "Data de fim",
"targetLists": "Lista de alvos",
"sentCount": "Enviar",
"openedCount": "Abertos",
"clickedCount": "Clicados",
"optedOutCount": "Cancelamentos",
"bouncedCount": "Bounces",
"hardBouncedCount": "Hard Bounce",
"softBouncedCount": "Soft Bounce",
"leadCreatedCount": "Leads Criados",
"revenue": "Receita",
"budget": "Orçamento"
},
"links": {
"targetLists": "Lista de alvos",
"accounts": "Contas",
"contacts": "Contatos",
"opportunities": "Oportunidades"
},
"options": {
"type": {
"Email": "E-mail",
"Television": "Televisão",
"Radio": "Rádio",
"Mail": "Correio"
},
"links": {
"targetLists": "Lista de alvos",
"accounts": "Contas",
"contacts": "Contatos",
"leads": "Leads",
"opportunities": "Oportunidades",
"campaignLogRecords": "Log"
},
"options": {
"type": {
"Email": "E-mail",
"Web": "Web",
"Television": "Televisão",
"Radio": "Rádio",
"Newsletter": "Newsletter",
"Mail": "Correio"
},
"status": {
"Planning": "Planejamento",
"Active": "Ativa",
"Inactive": "Inativa",
"Complete": "Completa"
}
},
"labels": {
"Create Campaign": "Criar Campanha",
"Target Lists": "Lista de alvos",
"Statistics": "Estatísticas",
"hard": "hard",
"soft": "soft"
},
"presetFilters": {
"active": "Ativa"
"status": {
"Planning": "Planejamento",
"Active": "Ativa",
"Inactive": "Inativa",
"Complete": "Completa"
}
}
},
"labels": {
"Create Campaign": "Criar Campanha",
"Target Lists": "Lista de alvos",
"Statistics": "Estatísticas",
"Email Templates": "Templates de email"
},
"presetFilters": {
"active": "Ativa"
}
}

View File

@@ -1,24 +1,33 @@
{
"fields": {
"action": "Ação",
"actionDate": "Data",
"data": "Dados",
"campaign": "Campanha",
"parent": "Alvo",
"object": "Objeto",
"application": "Aplicação"
},
"options": {
"action": {
"Sent": "Enviado",
"Opened": "Aberto",
"Opted Out": "Cancelado",
"Bounced": "Bounced",
"Clicked": "Clicado",
"Lead Created": "Lead Criado"
}
},
"labels": {
"All": "Tudo"
"fields": {
"action": "Ação",
"actionDate": "Data",
"data": "Dados",
"campaign": "Campanha",
"parent": "Alvo",
"object": "Objeto",
"application": "Aplicação"
},
"links": {
"object": "Assunto",
"campaign": "Campanha"
},
"options": {
"action": {
"Sent": "Enviado",
"Opened": "Aberto",
"Opted Out": "Cancelado",
"Clicked": "Clicado",
"Lead Created": "Lead Criado"
}
}
},
"labels": {
"All": "Tudo"
},
"presetFilters": {
"sent": "Enviado",
"opened": "Aberto",
"clicked": "Clicado",
"leadCreated": "Lead criado"
}
}

View File

@@ -0,0 +1,8 @@
{
"fields": {
"campaign": "Campanha"
},
"links": {
"campaign": "Campanha"
}
}

View File

@@ -1,42 +1,53 @@
{
"fields": {
"name": "Nome",
"number": "Número",
"status": "Status",
"account": "Conta",
"contact": "Contato",
"priority": "Prioridade",
"type": "Tipo",
"description": "Descrição"
"fields": {
"name": "Nome",
"number": "Número",
"account": "Conta",
"contact": "Contato",
"contacts": "Contatos",
"priority": "Prioridade",
"type": "Tipo",
"description": "Descrição",
"attachments": "Anexos"
},
"links": {
"account": "Conta",
"contact": "Contato (Primário)",
"Contacts": "Contatos",
"meetings": "Reuniões",
"calls": "Ligações",
"tasks": "Tarefas",
"attachments": "Anexos"
},
"options": {
"status": {
"New": "Novo",
"Assigned": "Designado",
"Pending": "Pendente",
"Closed": "Fechado",
"Rejected": "Rejeitado",
"Duplicate": "Duplicado"
},
"links": {
"priority": {
"Low": "Baixa",
"High": "Alta",
"Urgent": "Urgente"
},
"options": {
"status": {
"New": "Novo",
"Assigned": "Designado",
"Pending": "Pendente",
"Closed": "Fechado",
"Rejected": "Rejeitado",
"Duplicate": "Duplicado"
},
"priority": {
"Low": "Baixa",
"Normal": "Normal",
"High": "Alta",
"Urgent": "Urgente"
},
"type": {
"Question": "Questão",
"Incident": "Incidente",
"Problem": "Problema"
}
},
"labels": {
"Create Case": "Criar Atendimento"
},
"presetFilters": {
"open": "Aberto",
"closed": "Fechado"
}
}
"type": {
"Question": "Questão",
"Incident": "Incidente",
"Problem": "Problema"
}
},
"labels": {
"Create Case": "Criar Atendimento",
"Close": "Fechar",
"Reject": "Rejeitar",
"Closed": "Fechado",
"Rejected": "Rejeitado"
},
"presetFilters": {
"open": "Aberto",
"closed": "Fechado"
}
}

View File

@@ -1,34 +1,36 @@
{
"fields": {
"name": "Nome",
"emailAddress": "E-mail",
"title": "Cargo",
"account": "Conta",
"accounts": "Contas",
"phoneNumber": "Telefone",
"accountType": "Tipo de Conta",
"doNotCall": "Não Ligar",
"address": "Endereço",
"opportunityRole": "Regra de Oportunidade",
"accountRole": "Regra",
"description": "Descrição",
"campaign": "Campanha"
},
"links": {
"opportunities": "Oportunidades",
"cases": "Atendimento",
"targetLists": "Lista de Alvos",
"campaignLogRecords": "Log das Campanhas"
},
"labels": {
"Create Contact": "Criar Contato"
},
"options": {
"opportunityRole": {
"": "--Nenhum--",
"Decision Maker": "Tomador de Decisão",
"Evaluator": "Avaliador",
"Influencer": "Influenciador"
}
}
}
"fields": {
"name": "Nome",
"emailAddress": "E-mail",
"accountRole": "Regra",
"account": "Conta",
"accounts": "Contas",
"phoneNumber": "Telefone",
"accountType": "Tipo de Conta",
"doNotCall": "Não Ligar",
"address": "Endereço",
"opportunityRole": "Regra de Oportunidade",
"description": "Descrição",
"campaign": "Campanha",
"accountIsInactive": "Conta Inativa"
},
"links": {
"opportunities": "Oportunidades",
"cases": "Atendimento",
"targetLists": "Lista de Alvos",
"campaignLogRecords": "Log das Campanhas"
},
"labels": {
"Create Contact": "Criar Contato"
},
"options": {
"opportunityRole": {
"Decision Maker": "Tomador de Decisão",
"Evaluator": "Avaliador",
"Influencer": "Influenciador"
}
},
"presetFilters": {
"accountActive": "Ativo"
}
}

View File

@@ -1,32 +1,30 @@
{
"labels": {
"Create Document": "Criar Documento",
"Details": "Detalhes"
},
"fields": {
"name": "Nome",
"status": "Status",
"file": "Arquivo",
"type": "Tipo",
"source": "Fonte",
"publishDate": "Data de Publicação",
"expirationDate": "Data de expiração",
"description": "Descrição"
},
"links": {
"accounts": "Contas",
"opportunities": "Oportunidades"
},
"options": {
"status": {
"Active": "Ativo",
"Draft": "Rascunho",
"Expired": "Expirado",
"Canceled": "Cancelado"
}
},
"presetFilters": {
"active": "Ativo",
"draft": "Rascunho"
}
}
"labels": {
"Create Document": "Criar Documento",
"Details": "Detalhes"
},
"fields": {
"name": "Nome",
"file": "Arquivo",
"type": "Tipo",
"publishDate": "Data de Publicação",
"expirationDate": "Data de expiração",
"description": "Descrição"
},
"links": {
"accounts": "Contas",
"opportunities": "Oportunidades"
},
"options": {
"status": {
"Active": "Ativo",
"Draft": "Rascunho",
"Expired": "Expirado",
"Canceled": "Cancelado"
}
},
"presetFilters": {
"active": "Ativo",
"draft": "Rascunho"
}
}

View File

@@ -0,0 +1,8 @@
{
"labels": {
"Create Lead": "Criar lead",
"Create Contact": "Criar contato",
"Create Task": "Criar Tarefa",
"Create Case": "Criar caso"
}
}

View File

@@ -0,0 +1,18 @@
{
"fields": {
"name": "Nome",
"emailAddress": "Endereço de E-mail"
},
"options": {
"status": {
"Pending": "Pendente",
"Sent": "Enviado",
"Failed": "Falhou"
}
},
"presetFilters": {
"pending": "Pendente",
"sent": "Enviado",
"failed": "Falhou"
}
}

View File

@@ -1,100 +1,92 @@
{
"scopeNames": {
"Account": "Conta",
"Contact": "Contato",
"Lead": "Lead",
"Target": "Alvo",
"Opportunity": "Oportunidade",
"Meeting": "Reunião",
"Calendar": "Calendário",
"Call": "Ligação",
"Task": "Tarefa",
"Case": "Atendimento",
"InboundEmail": "E-mail de Entrada",
"Document": "Documento",
"Campaign": "Campanha",
"TargetList": "Lista de Alvos"
},
"scopeNamesPlural": {
"Account": "Contas",
"Contact": "Contatos",
"Lead": "Leads",
"Target": "Alvos",
"Opportunity": "Oportunidades",
"Meeting": "Reuniões",
"Calendar": "Calendário",
"Call": "Ligações",
"Task": "Tarefas",
"Case": "Atendimentos",
"InboundEmail": "E-mails de Entrada",
"Document": "Documentos",
"Campaign": "Campaign",
"TargetList": "Target List"
},
"dashlets": {
"Leads": "Meus Leads",
"Opportunities": "Minhas Oportunidades",
"Tasks": "Minhas Tarefas",
"Cases": "Meus Atendimentos",
"Calendar": "Calendário",
"Calls": "Minhas Ligações",
"Meetings": "Minhas Reuniões",
"OpportunitiesByStage": "Oportunidades por Estágio",
"OpportunitiesByLeadSource": "Oportunities por Origem do Lead",
"SalesByMonth": "Vendas Por Mês",
"SalesPipeline": "Funil de Vendas"
},
"labels": {
"Create InboundEmail": "Criar E-mail de Entrada",
"Activities": "Atividades",
"History": "Histórico",
"Attendees": "participantes",
"Schedule Meeting": "Agendar Reunião",
"Schedule Call": "Agendar Ligação",
"Compose Email": "Compor E-mail",
"Log Meeting": "Logar Reunião",
"Log Call": "Logar Ligação",
"Archive Email": "Arquivar E-mail",
"Create Task": "Criar Tarefa",
"Tasks": "Tarefas"
},
"fields": {
"billingAddressCity": "Cidade",
"billingAddressCountry": "País",
"billingAddressPostalCode": "CEP",
"billingAddressState": "Estado",
"billingAddressStreet": "Endereço",
"addressCity": "Cidade",
"addressStreet": "Logradouro",
"addressCountry": "País",
"addressState": "Estado",
"addressPostalCode": "CEP",
"shippingAddressCity": "Cidade (Envio)",
"shippingAddressStreet": "Logradouro (Envio)",
"shippingAddressCountry": "País (Envio)",
"shippingAddressState": "Estado (Envio)",
"shippingAddressPostalCode": "CEP (Envio)"
},
"links": {
"contacts": "Contatos",
"opportunities": "Oportunidades",
"leads": "Leads",
"meetings": "Reuniões",
"calls": "Ligações",
"tasks": "Tarefas",
"emails": "E-mails",
"accounts": "Contas",
"cases": "Atendimentos",
"documents": "Documentos",
"account": "Conta",
"opportunity": "Oportunidade",
"contact": "Contato",
"parent": "Pai"
},
"options": {
"reminderTypes": {
"Popup": "Popup",
"Email": "Email"
}
}
}
"links": {
"parent": "Pai",
"contacts": "Contatos",
"opportunities": "Oportunidades",
"meetings": "Reuniões",
"calls": "Ligações",
"tasks": "Tarefas",
"emails": "E-mails",
"accounts": "Contas",
"cases": "Atendimentos",
"documents": "Documentos",
"account": "Conta",
"opportunity": "Oportunidade",
"contact": "Contato"
},
"scopeNames": {
"Account": "Conta",
"Contact": "Contato",
"Target": "Alvo",
"Opportunity": "Oportunidade",
"Meeting": "Reunião",
"Calendar": "Calendário",
"Call": "Ligação",
"Task": "Tarefa",
"Case": "Atendimento",
"Document": "Documento",
"Campaign": "Campanha",
"TargetList": "Lista de Alvos",
"Activities": "Atividades"
},
"scopeNamesPlural": {
"Account": "Contas",
"Contact": "Contatos",
"Target": "Alvos",
"Opportunity": "Oportunidades",
"Meeting": "Reuniões",
"Calendar": "Calendário",
"Call": "Ligações",
"Task": "Tarefas",
"Case": "Atendimentos",
"Document": "Documentos",
"Campaign": "Campaign",
"TargetList": "Target List",
"Activities": "Atividades"
},
"dashlets": {
"Leads": "Meus Leads",
"Opportunities": "Minhas Oportunidades",
"Tasks": "Minhas Tarefas",
"Cases": "Meus Atendimentos",
"Calendar": "Calendário",
"Calls": "Minhas Ligações",
"Meetings": "Minhas Reuniões",
"OpportunitiesByStage": "Oportunidades por Estágio",
"OpportunitiesByLeadSource": "Oportunities por Origem do Lead",
"SalesByMonth": "Vendas Por Mês",
"SalesPipeline": "Funil de Vendas",
"Activities": "Minhas Atividades"
},
"labels": {
"Create InboundEmail": "Criar E-mail de Entrada",
"Activities": "Atividades",
"History": "Histórico",
"Attendees": "participantes",
"Schedule Meeting": "Agendar Reunião",
"Schedule Call": "Agendar Ligação",
"Compose Email": "Compor E-mail",
"Log Meeting": "Logar Reunião",
"Log Call": "Logar Ligação",
"Archive Email": "Arquivar E-mail",
"Create Task": "Criar Tarefa",
"Tasks": "Tarefas"
},
"fields": {
"billingAddressCity": "Cidade",
"addressCity": "Cidade",
"billingAddressCountry": "País",
"addressCountry": "País",
"billingAddressPostalCode": "CEP",
"addressPostalCode": "CEP",
"billingAddressState": "Estado",
"addressState": "Estado",
"billingAddressStreet": "Logradouro",
"addressStreet": "Logradouro",
"shippingAddressCity": "Cidade (Envio)",
"shippingAddressStreet": "Logradouro (Envio)",
"shippingAddressCountry": "País (Envio)",
"shippingAddressState": "Estado (Envio)",
"shippingAddressPostalCode": "CEP (Envio)"
}
}

View File

@@ -0,0 +1,27 @@
{
"labels": {
"Create KnowledgeBaseArticle": "Criar artigo"
},
"fields": {
"name": "Nome",
"attachments": "Anexos",
"description": "Descrição",
"categories": "Categorias"
},
"links": {
"opportunities": "Oportunidades"
},
"options": {
"status": {
"Draft": "Rascunho",
"Archived": "Arquivado",
"Published": "Publicado"
},
"type": {
"Article": "Artigo"
}
},
"presetFilters": {
"published": "Publicado"
}
}

View File

@@ -0,0 +1,9 @@
{
"labels": {
"Create KnowledgeBaseCategory": "Criar categoria",
"Articles": "Artigos"
},
"links": {
"articles": "Artigos"
}
}

View File

@@ -1,55 +1,56 @@
{
"labels": {
"Converted To": "Convertido Para",
"Create Lead": "Criar Lead",
"Convert": "Converter",
"convert": "converter"
"labels": {
"Converted To": "Convertido Para",
"Create Lead": "Criar Lead",
"Convert": "Converter",
"convert": "converter"
},
"fields": {
"name": "Nome",
"emailAddress": "E-mail",
"title": "Cargo",
"phoneNumber": "Telefone",
"accountName": "Conta",
"doNotCall": "Não Ligar",
"address": "Endereço",
"source": "Origem",
"opportunityAmount": "Valor da Oportunidade",
"opportunityAmountConverted": "Valor da Oportunidade (convertido)",
"description": "Descrição",
"createdAccount": "Conta",
"createdContact": "Contato",
"createdOpportunity": "Oportunidade",
"campaign": "Campanha"
},
"links": {
"targetLists": "Lista de Alvos",
"campaignLogRecords": "Logs das Camapnhas",
"campaign": "Campanha",
"createdContact": "Contato",
"createdOpportunity": "Oportunidade"
},
"options": {
"status": {
"New": "Novo",
"Assigned": "Atribuído",
"In Process": "Em Processo",
"Converted": "Convertido",
"Recycled": "Reciclado",
"Dead": "Morto"
},
"fields": {
"name": "Nome",
"emailAddress": "E-mail",
"title": "Cargo",
"website": "Website",
"phoneNumber": "Telefone",
"accountName": "Conta",
"doNotCall": "Não Ligar",
"address": "Endereço",
"status": "Status",
"source": "Origem",
"opportunityAmount": "Valor da Oportunidade",
"opportunityAmountConverted": "Valor da Oportunidade (convertido)",
"description": "Descrição",
"createdAccount": "Conta",
"createdContact": "Contato",
"createdOpportunity": "Oportunidade",
"campaign": "Campanha"
},
"links": {
"targetLists": "Lista de Alvos",
"campaignLogRecords": "Logs das Camapnhas"
},
"options": {
"status": {
"New": "Novo",
"Assigned": "Atribuído",
"In Process": "Em Processo",
"Converted": "Convertido",
"Recycled": "Reciclado",
"Dead": "Morto"
},
"source": {
"Call": "Ligação",
"Email": "E-mail",
"Existing Customer": "Cliente Existente",
"Partner": "Parceiro",
"Public Relations": "Relacionamento",
"Web Site": "Website",
"Campaign": "Campanha",
"Other": "Outro"
}
},
"presetFilters": {
"actual": "Atual",
"active": "Ativo"
}
}
"source": {
"Call": "Ligação",
"Email": "E-mail",
"Existing Customer": "Cliente Existente",
"Partner": "Parceiro",
"Public Relations": "Relacionamento",
"Web Site": "Website",
"Campaign": "Campanha",
"Other": "Outro"
}
},
"presetFilters": {
"active": "Ativo",
"actual": "Atual"
}
}

Some files were not shown because too many files have changed in this diff Show More