Compare commits

..

1468 Commits
5.3.2 ... 5.6.3

Author SHA1 Message Date
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
yuri
dd15767263 email is replied for expanded list 2019-05-10 13:37:28 +03:00
yuri
a698085196 list expanded changes 2019-05-10 12:48:06 +03:00
yuri
2d4e1a94a4 add dashlet modal change 2019-05-10 12:02:28 +03:00
yuri
dad49b9ac8 create button icon 2019-05-10 11:57:54 +03:00
yuri
c5c1abaeff Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-10 11:35:12 +03:00
yuri
eb4f933753 css list margin on wide screen 2019-05-10 11:34:49 +03:00
yuri
931f27cb70 css fix 2019-05-10 11:10:22 +03:00
Taras Machyshyn
e6e00d4c7f Bug fixes 2019-05-10 11:05:57 +03:00
yuri
3cf48129c6 css layout centered 2019-05-10 11:04:45 +03:00
yuri
b50bf02e90 updgrate info text 2019-05-09 17:36:02 +03:00
yuri
431e3428b3 fix wysiwyg stripping event handlers 2019-05-09 16:01:25 +03:00
yuri
6d2e056b10 email import not fetched text 2019-05-09 15:24:56 +03:00
yuri
1cbfacc864 Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-09 12:53:59 +03:00
Taras Machyshyn
f2b51d321f Fix 2019-05-09 12:53:32 +03:00
yuri
0fe0b8906c Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-09 11:41:26 +03:00
Taras Machyshyn
0876f03fe4 Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-09 11:41:08 +03:00
yuri
dd239af810 orm metadata index 2019-05-09 11:40:01 +03:00
Taras Machyshyn
5f2fae940c Added index key for ORM metadata 2019-05-09 10:52:55 +03:00
Taras Machyshyn
02f94875b1 Added defined index names 2019-05-09 10:27:39 +03:00
yuri
52536f9803 record service fix 2019-05-08 15:15:50 +03:00
yuri
7f963bd9f3 pass model to view after create 2019-05-08 12:21:28 +03:00
yuri
fcfbd478ca cleanup 2019-05-08 12:15:10 +03:00
yuri
d7164dd588 duplicateDisabled param 2019-05-08 11:51:29 +03:00
yuri
d20b2768e1 service create load additional fields 2019-05-08 11:46:59 +03:00
yuri
68301c52c1 logger cleanup 2019-05-08 11:31:35 +03:00
yuri
57aa9fa817 Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-08 11:13:59 +03:00
Taras Machyshyn
910291796b Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-08 11:13:01 +03:00
Taras Machyshyn
e4a661721f Added setLevel() for logger 2019-05-08 11:08:48 +03:00
yuri
4068a20b8e cleanup 2019-05-08 11:08:38 +03:00
yuri
c3be6db4f3 log changes 2019-05-07 18:28:57 +03:00
yuri
80678c97f0 field removal reload metadata 2019-05-07 16:07:57 +03:00
yuri
711d20f874 typo fixes 2019-05-07 14:53:08 +03:00
yuri
7f299e1aa2 email created by id index 2019-05-07 11:58:59 +03:00
yuri
ab612a3f32 event entity duration on list view fix 2019-05-07 10:57:56 +03:00
yuri
c0c244adc6 email select manager fix 2019-05-06 11:46:57 +03:00
yuri
46a985076e email from name caching 2019-05-03 16:41:09 +03:00
yuri
7f82fab69b email abort xht on select folder 2019-05-03 16:09:20 +03:00
yuri
12ed1b3383 email reset collection on folder change 2019-05-03 16:03:29 +03:00
yuri
eab279dd12 email draft optimization 2019-05-03 15:46:59 +03:00
yuri
e59a927faa email index skip 2019-05-03 15:25:42 +03:00
yuri
1c1cb13c4d fix select manager 2019-05-03 15:25:31 +03:00
yuri
45a37eabe2 orm use index optimization 2019-05-03 15:12:57 +03:00
yuri
bbe6d81aa2 Merge branch 'hotfix/5.6.2' of github.com:espocrm/espocrm into hotfix/5.6.2 2019-05-03 13:12:41 +03:00
Eymen Elkum
5d19b1bb72 fix additional css script (#1304) 2019-05-03 13:12:22 +03:00
yuri
866f05fea5 orm agragate wo joins 2019-05-03 12:55:34 +03:00
yuri
bd22554756 link parent display entity type 2019-05-03 12:20:38 +03:00
yuri
703e170773 cleanup orphan attachments change 2019-05-03 11:55:49 +03:00
yuri
a226242e69 update package.json 2019-05-03 11:22:31 +03:00
yuri
1438f8aa10 add created at fields 2019-05-03 11:09:12 +03:00
yuri
79564bab81 fix cleanup 2019-05-03 11:09:04 +03:00
yuri
5c7dd0b536 fix stream after remove 2019-05-03 11:08:30 +03:00
yuri
7e340b8b78 fix client field manager 2019-05-02 17:50:32 +03:00
yuri
a026dc577c diff fix 2019-05-02 16:14:42 +03:00
yuri
ed6c56629e css fix 2019-05-02 15:38:42 +03:00
yuri
97574707e5 wysiwyg strip all event handlers 2019-05-02 10:50:47 +03:00
yuri
942726eb74 diff fix 2019-05-01 12:17:11 +03:00
yuri
e1eb3f804e op admin stage probability 50 by default 2019-05-01 11:53:36 +03:00
yuri
2133a1390c bad request error msg 2019-05-01 11:48:23 +03:00
yuri
7fab959a2f Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-05-01 11:36:53 +03:00
yuri
88f64ab82f admin jobs link 2019-05-01 11:36:39 +03:00
Taras Machyshyn
1563d63051 Added params for an extension script 2019-05-01 11:33:04 +03:00
yuri
82026658e2 fix colors 2019-05-01 11:05:52 +03:00
yuri
26eec19a62 chart gray color 2019-05-01 11:01:11 +03:00
yuri
f548db2783 fix export 2019-05-01 10:43:18 +03:00
yuri
2da689e7e9 scope exportFormatList 2019-05-01 10:38:39 +03:00
yuri
8afb4804c3 orm sanitizeSelectAlias fix 2019-05-01 10:33:45 +03:00
yuri
56b8902969 orm fix week number 2019-05-01 10:31:01 +03:00
yuri
95cee6c845 email service get entity fix 2019-05-01 10:15:50 +03:00
yuri
dc58bcbd91 cleanup 2019-04-30 11:18:37 +03:00
yuri
8d3698e6a3 cleanup 2019-04-30 11:17:43 +03:00
yuri
c04526dc11 extension list layout fix 2019-04-30 11:17:05 +03:00
yuri
6a0d622344 event invitation smtp params fix 2019-04-30 11:13:35 +03:00
yuri
74797e0768 css fix 2019-04-30 11:09:41 +03:00
yuri
6fd0851dc9 fix dashboard 2019-04-30 11:00:26 +03:00
yuri
41e2773781 fix dashlet aftet adding 2019-04-30 10:58:50 +03:00
yuri
bf03412bf0 dashlet after adding 2019-04-30 10:49:44 +03:00
yuri
6b25aa1274 flotr fix 2019-04-26 13:50:03 +03:00
yuri
634acdd770 fix tasks meeting date filter 2019-04-25 15:26:07 +03:00
yuri
f2f01adfc9 phone number is opted out attribute 2019-04-25 12:26:07 +03:00
yuri
9cd2d1d21f import default phone number 2019-04-25 12:14:42 +03:00
yuri
fa144847e5 ability to import multiple email addresses 2019-04-25 11:55:03 +03:00
yuri
17138f715b controller before action usage 2019-04-24 15:36:49 +03:00
yuri
0babd05bff record service filter create update input methods 2019-04-24 13:35:47 +03:00
yuri
c5f14e55c5 record service validation order fix 2019-04-24 13:26:11 +03:00
yuri
03918c8ada charts si mul 2019-04-24 11:37:03 +03:00
yuri
80c7008a6c chart fixes 2019-04-24 11:02:02 +03:00
yuri
3d143cd3f0 fix notification badge overlapping 2019-04-23 17:00:32 +03:00
Pomazan Bogdan
365264b393 Правка перевода, логически не подходит (#1298) 2019-04-23 13:39:17 +03:00
yuri
3b4aea4966 email address rep change 2019-04-23 12:02:10 +03:00
yuri
cb77bc9085 list changes 2019-04-23 12:00:04 +03:00
yuri
691aff990b css fix 2019-04-22 15:35:45 +03:00
yuri
0f6ca667d9 vi lang 2019-04-22 13:57:59 +03:00
yuri
ba41229a83 tr lang 2019-04-22 13:57:19 +03:00
yuri
7c9d28098b es_mx lang 2019-04-22 13:56:44 +03:00
yuri
eccf9e4d85 nl lang 2019-04-22 13:55:53 +03:00
yuri
96dffc0b74 it lang 2019-04-22 13:55:06 +03:00
yuri
308d0bfc0c hr lang 2019-04-22 13:54:27 +03:00
yuri
f9dcf2db7d orm order by complex expression 2019-04-22 12:13:07 +03:00
yuri
88798f2b86 orm foreign select for foreign fields 2019-04-19 17:26:50 +03:00
yuri
28ecdc46b6 upgrade text 2019-04-19 13:48:39 +03:00
yuri
6a30031f49 css addition 2019-04-17 13:26:24 +03:00
yuri
d4f23e391f cleanup 2019-04-16 16:05:26 +03:00
yuri
79b7463886 additional css 2019-04-16 16:04:06 +03:00
Yurii Kondratskyi
eddae25d7f fix get acl level method (#1294) 2019-04-16 11:08:53 +03:00
Taras Machyshyn
5e9c85fc06 Merge branch 'hotfix/5.6.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.2 2019-04-12 14:34:29 +03:00
Taras Machyshyn
b44adb34ec Metadata changes 2019-04-12 14:34:09 +03:00
yuri
f0f6cac84a fix; php clear_cache.php 2019-04-12 13:25:08 +03:00
yuri
17e87f58c3 css fix 2019-04-11 16:30:41 +03:00
yuri
273698e2fc imap hander case insensitive 2019-04-11 11:46:16 +03:00
yuri
66f88e0e8e fix email address smtp apply case insesitive 2019-04-11 11:44:01 +03:00
yuri
de945008fb fix email send 2019-04-10 16:32:29 +03:00
yuri
5f91505b8e fix typo 2019-04-10 14:49:16 +03:00
yuri
6a25c283ec upgrade info msg 2019-04-10 13:45:02 +03:00
yuri
74fa9289a7 lead capture enhancements 2019-04-10 13:13:35 +03:00
yuri
ab4b975912 version 2019-04-10 11:59:38 +03:00
yuri
2260089301 upgrade message 2019-04-10 11:57:22 +03:00
yuri
9dd35f1e32 opp empty probability for stages 2019-04-10 11:45:47 +03:00
yuri
6b90cee851 fix opcache warning 2019-04-09 11:11:01 +03:00
yuri
6da132c034 fix date time between filter 2019-04-09 11:08:38 +03:00
yuri
bc966a8ea8 fix date time filter 2019-04-08 15:31:20 +03:00
yuri
6eab0c9b75 flotr fix 2019-04-08 15:01:46 +03:00
yuri
cf253fae8a fix 2019-04-08 13:54:57 +03:00
yuri
c0eaa8fb50 attachment multiple link disabled 2019-04-08 13:52:45 +03:00
yuri
a4889de80a image link disabled 2019-04-08 13:52:01 +03:00
yuri
acac599f6b file disabled link 2019-04-08 13:41:54 +03:00
yuri
1436ffa53f opp lead source translation param 2019-04-08 12:28:10 +03:00
yuri
c68a3dd0a6 fix stream panel 2019-04-05 17:03:27 +03:00
yuri
29c42022ef allow empty dashlet title 2019-04-05 16:52:49 +03:00
yuri
dd814c1b5e edit button default style 2019-04-05 16:33:29 +03:00
yuri
7fc2c71f58 fix account contact 2019-04-05 15:49:57 +03:00
yuri
e6a3d3c982 css fix 2019-04-05 15:02:09 +03:00
yuri
46380ee9ff css fix 2019-04-05 14:58:47 +03:00
yuri
1fa3908888 chart mouse track centered 2019-04-05 14:49:51 +03:00
yuri
914e6a1789 fix admin rebuild clear cache 2019-04-04 11:38:28 +03:00
yuri
9a1d073072 many-to-many same entity types 2019-04-04 11:28:28 +03:00
yuri
3712caf7b1 email inline attachments fix 2019-04-03 13:11:45 +03:00
yuri
a770e18bb2 Merge branch 'hotfix/5.6.1' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.6.1 2019-04-03 11:50:55 +03:00
Taras Machyshyn
5dc0cfb666 NamespaceLoader fix 2019-04-03 11:49:59 +03:00
yuri
e4ab02c77a fix ws 2019-04-02 12:25:47 +03:00
yuri
a0f729cd8d fix ws 2019-04-02 12:04:14 +03:00
yuri
d544b1c264 fix flotr2 2019-04-01 16:31:59 +03:00
yuri
d8549cbebe v 2019-04-01 16:29:30 +03:00
yuri
4ae4734dbf fix flotr2 2019-04-01 16:26:40 +03:00
yuri
cc72de7121 da_DK 2019-03-28 16:09:23 +02:00
yuri
29bf2c2e40 Merge branch 'hotfix/5.5.7' 2019-03-28 15:17:48 +02:00
yuri
e31771c8a9 Merge branch 'hotfix/5.5.7' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.7 2019-03-28 15:11:05 +02:00
yuri
b938942c78 fix upgrade 2019-03-28 11:14:41 +02:00
yuri
262bc6d44d escaping fixes 2019-03-28 10:53:34 +02:00
yuri
acd8d23c6c stream store is internal and default 2019-03-27 11:46:16 +02:00
yuri
940bb8f9b1 fix clint storage 2019-03-27 11:46:02 +02:00
yuri
27d22d4c9c int field refactoring 2019-03-26 16:08:31 +02:00
yuri
4024055755 date field search data change 2019-03-26 15:35:37 +02:00
yuri
441c046fbd home view 2019-03-26 12:08:31 +02:00
yuri
649fd579e2 quick detail disable quick edit param 2019-03-26 11:13:55 +02:00
yuri
c08478e156 tests fix 2019-03-26 10:32:31 +02:00
yuri
389327ae63 cs fix 2019-03-26 10:29:51 +02:00
yuri
122ee3e259 fix formula cache issue 2019-03-26 10:22:42 +02:00
yuri
ef5f048343 preserve root url on model switch over 2019-03-25 16:14:48 +02:00
yuri
9f56efada1 record controller restore options on back 2019-03-25 16:04:18 +02:00
yuri
c3553b1fb1 clnup 2019-03-25 15:55:07 +02:00
yuri
1eebfefc79 orm: now function 2019-03-25 11:04:28 +02:00
yuri
f7391c04d4 timeline dashlet no loading message 2019-03-25 10:58:49 +02:00
yuri
90537515fa css fix 2019-03-25 10:53:48 +02:00
yuri
1da3d093be css fix 2019-03-25 10:47:28 +02:00
yuri
c923134b97 fix typo in least busy 2019-03-25 10:37:16 +02:00
yuri
8eb11787de update bull.js 2019-03-25 10:29:15 +02:00
yuri
727062cf9e client custom routes 2019-03-22 17:09:11 +02:00
yuri
4054b9497d record detail left class name 2019-03-22 14:55:42 +02:00
yuri
4ea7154c9e orm expression without value 2019-03-22 13:15:38 +02:00
yuri
a35f12dffb select manager fix 2019-03-22 12:09:13 +02:00
yuri
8b6022bada multi enum restore on backspace 2019-03-22 10:53:00 +02:00
yuri
1bbbac2cc7 fix orm 2019-03-21 17:39:14 +02:00
yuri
ca632f6467 orm math functions 2019-03-21 16:27:54 +02:00
yuri
256d9555b4 orm char length 2019-03-21 16:05:49 +02:00
yuri
7db73f0688 orm: not 2019-03-21 15:19:44 +02:00
yuri
b9d6650298 fix notification check updates 2019-03-21 12:04:54 +02:00
yuri
f17d4922dd orm: in, not in functions 2019-03-21 10:51:13 +02:00
yuri
6a1b6cc922 chart colors fix 2019-03-21 10:34:35 +02:00
yuri
3ec088d485 colors fix 2019-03-20 17:04:21 +02:00
yuri
b11cb0059e orm: sanitizeSelectAlias change 2019-03-20 12:03:06 +02:00
yuri
989e5d1845 orm: new functions 2019-03-20 11:40:05 +02:00
yuri
f8d0c4e3f9 orm IF function 2019-03-20 10:24:57 +02:00
yuri
3af1850600 fix email address validation 2019-03-19 13:26:04 +02:00
yuri
f8c0a4d2e5 fix ws 2019-03-19 12:21:51 +02:00
yuri
c0c28c912e fix notification 2019-03-19 12:21:44 +02:00
yuri
ad55c66e77 ws fix 2019-03-18 16:11:37 +02:00
yuri
d276b1a5e1 naming fix 2019-03-18 15:58:53 +02:00
yuri
e899781cb5 websocket fixes 2019-03-18 15:37:21 +02:00
yuri
5dd014f835 lang fix 2019-03-15 17:15:51 +02:00
yuri
136bad46ce websocket settings 2019-03-15 16:50:59 +02:00
yuri
bd09d2a2cb config superAdminSystemItems 2019-03-15 16:50:51 +02:00
yuri
2b2428021f websocket fix 2019-03-15 16:16:39 +02:00
yuri
a9537f210a fix activities 2019-03-15 11:30:48 +02:00
yuri
3993bb5c27 fix target list 2019-03-14 13:53:33 +02:00
yuri
0c35b59ac1 fix 2019-03-14 13:15:26 +02:00
yuri
f68effefe6 fix field manager options with style 2019-03-14 11:58:02 +02:00
yuri
45f1b4c427 cs fix, allow 201 http code 2019-03-13 16:43:42 +02:00
yuri
9c0a53728b multi-enum is sorted fetch 2019-03-13 14:48:23 +02:00
yuri
84c4fb4468 fix multi-enum 2019-03-13 14:41:47 +02:00
yuri
da2310a011 portal home tab 2019-03-12 16:23:58 +02:00
yuri
96fe58bafc fix prferences 2019-03-12 16:21:26 +02:00
yuri
da5328f725 defaultSidePanelFieldList 2019-03-12 15:47:54 +02:00
yuri
e741502528 Merge branch 'master' of github.com:espocrm/espocrm 2019-03-12 15:20:34 +02:00
rodrigoscoelho
25988d7c3d ``CODE`` was missing... (#1271)
Thanks
2019-03-12 15:20:14 +02:00
yuri
61b68a5b41 lang 2019-03-11 12:18:57 +02:00
yuri
7b6626d8eb templates link in admin 2019-03-11 11:06:53 +02:00
yuri
f864bc8fec text field displayRawText param 2019-03-11 11:01:18 +02:00
yuri
5c5277b54a view helper cleanup 2019-03-11 11:00:59 +02:00
yuri
7eff19547c grunt clean change 2019-03-11 10:21:27 +02:00
yuri
05b6bcbab2 fix campaign opted out count 2019-03-08 15:38:12 +02:00
yuri
7640279a6b fix controller bc 2019-03-08 15:16:32 +02:00
yuri
2447117b03 frontend controller change 2019-03-08 15:09:21 +02:00
yuri
334b96807c ORM: week fix 2019-03-08 13:08:57 +02:00
yuri
3dcba630fe dynamic logic support file type 2019-03-08 11:51:37 +02:00
yuri
d43f78b5d2 formula trigger change 2019-03-07 18:16:53 +02:00
yuri
d197391668 orm select manager changes 2019-03-07 17:40:28 +02:00
yuri
50fe25eab3 select manager improvements 2019-03-07 16:06:33 +02:00
yuri
4192964217 select manager fix 2019-03-07 14:08:00 +02:00
yuri
247b42474d fix email account controller 2019-03-06 16:19:32 +02:00
yuri
5e3a4359f8 templates hide direct access disabled fields 2019-03-06 15:04:52 +02:00
yuri
5a051d1c45 userData entity 2019-03-06 14:08:33 +02:00
yuri
fd63de7706 fix 2019-03-06 11:52:04 +02:00
yuri
08d5edd991 fix imap smtp handlers 2019-03-06 11:33:27 +02:00
yuri
7074467fc2 smtp fixes 2019-03-06 11:30:48 +02:00
yuri
e61aecd0ff update libs 2019-03-06 11:04:11 +02:00
yuri
dbf1145c53 update smtp params for zend 2019-03-06 11:00:52 +02:00
yuri
d34b74297e oauth reason log 2019-03-06 10:06:27 +02:00
yuri
e8ce1b1592 ExternalAccountClientManager 2019-03-06 09:47:45 +02:00
yuri
663c5df115 zend validator update 2019-03-05 19:26:08 +02:00
yuri
62c24bbad0 fix 2019-03-05 18:56:32 +02:00
yuri
2e07791d43 fix smtp 2019-03-05 18:23:53 +02:00
yuri
bc397f9dcf smtp fixes 2019-03-05 18:16:21 +02:00
yuri
e91184064c smtp change 2019-03-05 17:58:06 +02:00
yuri
abe9ef19ca cs fix 2019-03-05 17:39:09 +02:00
yuri
18d3e357f7 fix 2019-03-05 17:27:35 +02:00
yuri
4c02636027 smtpAuthClassName 2019-03-05 17:24:01 +02:00
yuri
98d47bc832 fix 2019-03-05 17:17:37 +02:00
yuri
a990cc771d fix 2019-03-05 17:16:09 +02:00
yuri
3a8fa432de smtp handler fix imap handler 2019-03-05 17:13:01 +02:00
yuri
d41c7e2298 pferences entity acl 2019-03-05 16:05:21 +02:00
yuri
636906de6f prepareImapStorageProtocol 2019-03-05 15:56:29 +02:00
yuri
9323bb07a7 imap handler 2019-03-05 15:30:06 +02:00
yuri
bfc5f27e30 fix field 2019-03-05 14:12:00 +02:00
yuri
aeee88602c email account required fields fix 2019-03-05 12:52:29 +02:00
yuri
251a2e46a8 fix field tepmlate content 2019-03-05 12:41:27 +02:00
yuri
87ab67dd4c email account address autocomplete 2019-03-05 12:27:19 +02:00
yuri
75e537e428 naming fix 2019-03-05 11:58:15 +02:00
yuri
383605b597 meeting: do not copy acceptance status on duplicate 2019-03-05 11:53:00 +02:00
yuri
9a18ce2868 admin iframe height 2019-03-05 11:43:36 +02:00
yuri
79a99e042f fix admin iframe css 2019-03-04 09:46:41 +02:00
yuri
ce6627282c css fix 2019-03-01 17:28:06 +02:00
yuri
775e66f1ed css fix 2019-03-01 16:55:06 +02:00
yuri
d09ad3a7b7 css iframe 2019-03-01 13:50:08 +02:00
yuri
429a334d35 field view template content 2019-02-28 18:35:58 +02:00
yuri
978784c267 fix currency change 2019-02-28 17:03:49 +02:00
yuri
18736600ef Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2019-02-28 13:55:36 +02:00
Taras Machyshyn
94ee8c6491 Extensions: bug fixes 2019-02-28 13:54:17 +02:00
yuri
225704d1f7 aclPortal strict default for case and kb 2019-02-27 16:34:07 +02:00
yuri
ffb56703c6 free busy ignore fetched events 2019-02-27 12:54:47 +02:00
yuri
8694d1e924 modal dropdown items, meeting set held on modal 2019-02-27 12:45:18 +02:00
yuri
2408d086a0 fix user limit check 2019-02-27 10:58:05 +02:00
yuri
09f4b0b494 fix wysiwyg 2019-02-27 10:49:15 +02:00
yuri
6c55a35445 pdf fix 2019-02-27 10:39:58 +02:00
yuri
97a572cf96 pdf custom page size fixes 2019-02-27 10:35:06 +02:00
Eymen Elkum
de78c92808 pdf template custom page size. (#1258) 2019-02-26 20:46:27 +02:00
yuri
e38f967b1b upgrade command 2019-02-26 17:26:07 +02:00
Taras Machyshyn
a07fe944c5 AdminNotifications changes 2019-02-26 15:28:18 +02:00
yuri
32e32ddc51 2019 license 2019-02-25 16:45:32 +02:00
yuri
042780b4a1 email notifications about post markdown 2019-02-25 13:44:38 +02:00
yuri
70ad78a398 fix flotr2 2019-02-25 13:16:56 +02:00
yuri
805027bb8c Merge branch 'hotfix/5.5.7' 2019-02-25 12:04:45 +02:00
yuri
9453c93966 Merge branch 'hotfix/5.5.7' of github.com:espocrm/espocrm into hotfix/5.5.7 2019-02-25 12:04:36 +02:00
Eymen Elkum
b74d2d8bba fix typo in 'views/fields/file' (#1252)
remove duplicated event showImagePreview
2019-02-25 12:04:00 +02:00
yuri
b709892311 stream service fix 2019-02-25 12:02:29 +02:00
yuri
aba8b21d66 cleanup fix 2019-02-25 11:58:49 +02:00
yuri
abd2801ac8 console auth 2019-02-25 11:56:58 +02:00
yuri
ee7ce8221d fix rdb 2019-02-25 11:50:39 +02:00
yuri
89079362b6 fix 2019-02-25 11:40:13 +02:00
yuri
79fe419f13 fix notifications 2019-02-25 11:01:34 +02:00
yuri
b4a528c05e fix layout email 2019-02-22 17:34:28 +02:00
yuri
60c375dbca fix link parent 2019-02-22 17:24:09 +02:00
yuri
c7dfcfe426 fix css 2019-02-22 17:02:21 +02:00
yuri
0456dbfa42 list this.forcedCheckAllResultMassActionList 2019-02-22 15:03:16 +02:00
yuri
c806e0ad8d email received notification send even if email is related to user 2019-02-22 13:19:49 +02:00
yuri
a8acafdb69 update and extension message changes 2019-02-22 12:42:45 +02:00
yuri
208a7f8620 command fix 2019-02-22 12:03:08 +02:00
yuri
31ed07648e daemon fix 2019-02-22 11:57:58 +02:00
yuri
bf08bddec3 modal add button before specific 2019-02-22 11:53:20 +02:00
yuri
8d4ae8950a orm refactoring and cs fix 2019-02-22 11:43:08 +02:00
yuri
c95d7e5548 fix lang 2019-02-22 11:37:15 +02:00
yuri
c90ac7cc6a list force displat tobBar 2019-02-22 10:48:45 +02:00
yuri
0678ba47de action history layout fix 2019-02-22 10:46:14 +02:00
yuri
60f43d40e4 logs seconds 2019-02-22 10:42:01 +02:00
yuri
43e6332bd8 command hyphen options converted to camelCase 2019-02-21 17:08:08 +02:00
yuri
9142783564 email notifications delay 2019-02-21 16:28:48 +02:00
yuri
d3b0e9ed5d find by query sth 2019-02-21 16:20:23 +02:00
yuri
0721bd5c27 list topBar forced 2019-02-21 15:27:13 +02:00
yuri
1d5e9c67f0 orm relate unrelate belongs to 2019-02-21 14:31:33 +02:00
yuri
20ad921cb2 cs fix 2019-02-21 14:11:24 +02:00
yuri
aeee20ab42 cs fix 2019-02-21 13:55:10 +02:00
yuri
26c1df6168 acceptance in modal 2019-02-21 13:40:37 +02:00
yuri
b037423621 fix acceptance 2019-02-21 12:31:27 +02:00
yuri
8e040a83d0 meeting/call: acceptance status button 2019-02-21 12:26:51 +02:00
yuri
a450342e93 cleanup 2019-02-21 10:46:28 +02:00
yuri
d4c0331f41 fix number 2019-02-21 10:42:46 +02:00
yuri
5f74ca9504 email template insert field fix 2019-02-20 15:38:48 +02:00
yuri
141a6f218b fix number 2019-02-20 15:33:42 +02:00
yuri
0bb3464e81 case icon 2019-02-20 13:36:56 +02:00
yuri
e5dfc1af82 meeting icon 2019-02-20 13:33:21 +02:00
yuri
5b130dd876 source map 2019-02-20 13:04:54 +02:00
yuri
196422de87 sth collection 2019-02-20 12:40:51 +02:00
yuri
2a5bcf0bdd fix list all result 2019-02-20 12:22:56 +02:00
yuri
638908acb8 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2019-02-20 12:18:07 +02:00
yuri
f7ffcafb27 number format float 2019-02-20 12:12:26 +02:00
yuri
cca4aa7f6f ldap no password change 2019-02-20 12:12:02 +02:00
yuri
ec60f2b0f3 cleanup 2019-02-20 11:23:32 +02:00
yuri
5f595bd86f frontend number util 2019-02-20 11:23:20 +02:00
yuri
13909fc1bd fix preferences 2019-02-20 10:58:53 +02:00
Taras Machyshyn
a589d369bc Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2019-02-20 10:56:30 +02:00
Taras Machyshyn
5ac88a7b1a Corrected Ukrainian language 2019-02-20 10:55:40 +02:00
yuri
e3f1baacbe version 2019-02-19 18:19:48 +02:00
yuri
bc09e9a797 cssmin 2019-02-19 18:02:19 +02:00
yuri
f93eb3a5b3 fix theme is applied 2019-02-19 17:53:13 +02:00
yuri
6922e942ba npm updates 2019-02-19 17:21:51 +02:00
yuri
6397650183 fix 2019-02-19 15:31:54 +02:00
yuri
6fd89db736 cs fix 2019-02-19 15:25:32 +02:00
yuri
d6071bd894 export using temp file 2019-02-19 14:38:33 +02:00
yuri
5c1d088744 export csv fixes 2019-02-19 13:33:26 +02:00
yuri
4bc01767c8 Merge branch 'hotfix/5.5.7' 2019-02-19 13:21:43 +02:00
yuri
acb532db89 isLinkStub 2019-02-19 13:21:31 +02:00
yuri
8c9ccde962 npm update 2019-02-19 12:51:52 +02:00
yuri
c1958d76b1 fa lang 2019-02-18 17:02:54 +02:00
yuri
a804f17934 export please wait 2019-02-18 16:15:42 +02:00
yuri
8fb05d4fe3 fix 2019-02-18 14:12:09 +02:00
yuri
ee9d0355d4 fix api user name validate 2019-02-18 14:10:36 +02:00
yuri
139b58ce6d fix 2019-02-18 14:02:32 +02:00
yuri
4a8eff32cb Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2019-02-18 11:48:41 +02:00
Taras Machyshyn
6c6d1a7f53 Autoload: added psr-0, psr-4, classmap, autoloadFileList, files 2019-02-18 11:44:38 +02:00
yuri
a59825a79b group email account keep unseen 2019-02-18 11:39:07 +02:00
yuri
81bb4a43f5 Merge branch 'hotfix/5.5.7' 2019-02-18 11:26:53 +02:00
yuri
184369af9c fix portal role cache 2019-02-18 11:26:45 +02:00
yuri
d492ca15da autocomplete select 2019-02-18 11:23:50 +02:00
yuri
5a17c923f0 user mention url fix 2019-02-18 11:15:13 +02:00
yuri
dfcaa60e04 Merge branch 'hotfix/5.5.7' 2019-02-18 11:05:43 +02:00
yuri
f3317793cb cs fix 2019-02-18 11:03:25 +02:00
yuri
41a3e7eaa3 mass email open tracking param 2019-02-18 11:03:19 +02:00
yuri
4357e331ad css fix 2019-02-18 10:42:03 +02:00
yuri
49fe1a75db array field escaping 2019-02-15 17:01:33 +02:00
yuri
68dfa92425 muli-enum style and label 2019-02-15 16:16:45 +02:00
yuri
987fd7f922 Merge branch 'hotfix/5.5.7' 2019-02-15 15:57:46 +02:00
yuri
449f0d6237 enum label changes 2019-02-15 15:57:36 +02:00
yuri
dcbdf94023 console run job 2019-02-15 14:23:16 +02:00
yuri
6e7150cef2 fix command manager 2019-02-15 14:08:15 +02:00
yuri
949209d708 multi enum max count param 2019-02-15 13:36:04 +02:00
yuri
0aab014af1 COALESCE function, null, true, false 2019-02-15 12:20:23 +02:00
yuri
a5941e472e cleanup 2019-02-15 12:11:51 +02:00
yuri
9a18a461be forbidden names 2019-02-15 11:49:59 +02:00
yuri
95bbba4607 zmq submit timeout 2019-02-15 11:37:58 +02:00
yuri
d8efe74126 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2019-02-14 18:12:21 +02:00
yuri
dafe9d8274 fix 2019-02-14 17:36:41 +02:00
yuri
505862efad frontend bc fix 2019-02-14 17:36:03 +02:00
yuri
3e3616bc36 orm functions improvements 2019-02-14 15:42:25 +02:00
yuri
f72c16a604 select manager forbid complex expressions 2019-02-14 15:42:09 +02:00
yuri
d1be813d05 multi enum: is sorted param 2019-02-13 16:05:46 +02:00
yuri
17cdecf45c fix opp amount weighted 2019-02-13 15:40:00 +02:00
yuri
0906e79211 layoutAvailabilityList and contact role on opportunities panel 2019-02-13 12:55:14 +02:00
yuri
4acb5ee4c8 restore deleted tests 2019-02-13 12:23:27 +02:00
yuri
0bce33e92a service read exception 2019-02-13 12:23:14 +02:00
yuri
929fa2f620 cleanup 2019-02-13 12:04:56 +02:00
yuri
fb66c5ec60 deleted record view changes 2019-02-13 12:00:12 +02:00
yuri
54850f62a8 frontend record controller changes 2019-02-13 11:34:08 +02:00
yuri
ea0e38277d fix contact filter by account is inactive 2019-02-13 11:17:13 +02:00
yuri
e099fd43dd forbidden action link name 2019-02-12 18:33:26 +02:00
yuri
d90efae709 restore deleted 2019-02-12 18:29:12 +02:00
yuri
2131232e14 isFollowed disabled 2019-02-12 17:51:52 +02:00
yuri
c823e9e06f cs fix 2019-02-12 17:18:13 +02:00
yuri
d325d92f89 import silent mode 2019-02-12 16:19:22 +02:00
yuri
84143cd096 cs fix 2019-02-12 16:05:26 +02:00
yuri
d7f5993665 htaccess fix 2019-02-12 15:20:36 +02:00
yuri
88ddd5546a htaccess fix 2019-02-12 15:19:31 +02:00
yuri
25d6ca3fea forbid mass remove by where if no mass update permission 2019-02-12 14:12:05 +02:00
yuri
3709523836 fix stream websocket 2019-02-12 14:02:15 +02:00
yuri
0e17079b03 websocket fixes 2019-02-12 13:50:00 +02:00
yuri
2752924d16 websocket changes 2019-02-12 13:19:32 +02:00
yuri
7c1144fa2c concole command changes 2019-02-12 11:54:29 +02:00
yuri
6008f1abb2 check for duplicate improvement 2019-02-12 11:30:39 +02:00
yuri
d4f200171f fix activities 2019-02-11 16:56:03 +02:00
yuri
2dd8d8b442 websocket changes 2019-02-11 16:50:20 +02:00
yuri
d5dc0fa2e6 console command changes 2019-02-11 15:37:19 +02:00
yuri
8cb9568334 record service populate default currency 2019-02-11 15:26:00 +02:00
yuri
4cc33fc06e orm selectForeign 2019-02-11 13:23:18 +02:00
Taras Machyshyn
73c94b861e Fix delete custom entity 2019-02-11 11:51:08 +02:00
yuri
7b0fde72b8 orm optimization 2019-02-11 11:14:06 +02:00
yuri
564d7dd567 Merge branch 'hotfix/5.5.7' 2019-02-11 10:59:03 +02:00
yuri
3f21bd618c modal headerHtml 2019-02-11 10:55:20 +02:00
yuri
ed1f803647 fix wysiwyg 2019-02-11 10:37:52 +02:00
yuri
4b03f3aba9 fix typo 2019-02-11 10:36:54 +02:00
yuri
7b7fa5aa24 fix typo 2019-02-11 10:36:24 +02:00
yuri
15a1c68ede Merge branch 'hotfix/5.5.7' 2019-02-08 17:36:47 +02:00
yuri
9e252298cf fix 2019-02-08 17:36:39 +02:00
yuri
89d4a04d85 Merge branch 'hotfix/5.5.7' 2019-02-08 17:25:53 +02:00
yuri
1cd0c5d925 fix 2019-02-08 17:25:46 +02:00
yuri
43ab711254 fix 2019-02-08 17:22:11 +02:00
yuri
c671e47a5d fix 2019-02-08 17:21:54 +02:00
yuri
983988c9e1 ConsoleCommand framework 2019-02-08 16:44:54 +02:00
yuri
790a206e0a Merge branch 'hotfix/5.5.7' 2019-02-08 16:03:06 +02:00
yuri
f5759c3327 fix dashlet chart 2019-02-08 15:54:38 +02:00
yuri
a15a2f4ee5 flotr fix 2019-02-08 15:52:35 +02:00
yuri
2e4dc5a2ea merge 2019-02-08 14:11:20 +02:00
yuri
9b78cf401b fix mass actions 2019-02-08 14:02:47 +02:00
yuri
ed64c93aa0 custom mass action ignore select all result 2019-02-08 13:44:29 +02:00
yuri
618792b541 fix flotr 2019-02-08 12:56:49 +02:00
yuri
1bbba0e9b3 fix formula floatval 2019-02-08 11:23:08 +02:00
yuri
3a8300f172 container changes 2019-02-07 15:47:15 +02:00
yuri
6e40357e3f validate skip type field list 2019-02-07 13:56:33 +02:00
yuri
20a767b452 massUpdate function change 2019-02-07 13:47:32 +02:00
yuri
ff96f18adb fix tests 2019-02-07 13:47:22 +02:00
yuri
a768181a75 field validation additions and tests 2019-02-07 13:15:44 +02:00
yuri
edb52e253b edit save error revert edit mode 2019-02-07 11:57:12 +02:00
yuri
ee52b8d4d9 field validation additions 2019-02-06 16:37:53 +02:00
yuri
7154fa0f4a field validation framework 2019-02-06 14:24:20 +02:00
yuri
7e54239710 field manager changes 2019-02-06 11:50:56 +02:00
yuri
a54be505d4 client field manager methods 2019-02-06 11:20:34 +02:00
yuri
3efa23fb71 moment timezone update 2019-02-05 16:07:15 +02:00
yuri
2254257250 gitignore add debug log 2019-02-05 14:44:05 +02:00
yuri
18f4f057eb cleanup 2019-02-05 14:04:17 +02:00
yuri
246f2186a5 app use ajax class 2019-02-05 13:59:49 +02:00
yuri
ed6c248bbe update moment 2019-02-05 13:50:44 +02:00
yuri
c22b1c0e9d Merge branch 'hotfix/5.5.7' 2019-02-05 11:48:58 +02:00
yuri
5087b19135 missing license fix 2019-02-05 11:48:42 +02:00
yuri
26175c8795 frontend naming fix 2019-02-05 11:47:53 +02:00
yuri
4400c9bfa8 autobahn js minify 2019-02-05 11:40:48 +02:00
yuri
f99cac5d4c serverside email address validation 2019-02-05 11:20:07 +02:00
yuri
d81d66ea5d fix add email address regex 2019-02-04 14:07:25 +02:00
yuri
00d6e2a58c portal siteUrl 2019-02-04 12:27:58 +02:00
yuri
e48fa00893 kb fix send email 2019-02-04 12:00:36 +02:00
yuri
98bf4594b4 update about 2019-02-04 10:52:51 +02:00
yuri
2e38270083 fix email address add 2019-02-04 10:49:39 +02:00
yuri
9e578f4edd composer update 2019-02-01 17:07:14 +02:00
yuri
2186673b2a find php executable 2019-02-01 16:58:47 +02:00
yuri
4080c8c877 reminder popup fix 2019-02-01 16:42:27 +02:00
yuri
8af40f2444 css fixes 2019-02-01 16:11:58 +02:00
yuri
6619abb02b fix loader warn 2019-02-01 15:58:51 +02:00
yuri
9806e092df cleanup 2019-02-01 15:56:48 +02:00
yuri
f1d8af128d websocket 2019-02-01 15:42:18 +02:00
Taras Machyshyn
84e5fb33c0 Upgrades: enable maintenanceMode while installation 2019-01-31 17:47:14 +02:00
yuri
a42afcf6e4 Merge branch 'hotfix/5.5.7' 2019-01-31 11:00:26 +02:00
yuri
3d16450dd8 update bull 2019-01-30 17:07:42 +02:00
yuri
ad9edb2b43 restrcted mode hide params 2019-01-30 16:49:06 +02:00
yuri
0b1671e1a3 tooltip fix 2019-01-30 16:35:34 +02:00
yuri
7361488270 amend 2019-01-30 15:24:10 +02:00
yuri
f75e6f6ad0 import time formats with seconds 2019-01-30 15:14:50 +02:00
yuri
dd3a075c24 settings layout changes 2019-01-30 14:28:43 +02:00
yuri
263949134c update bull 2019-01-30 13:54:14 +02:00
yuri
ebf7c78199 fix 2019-01-30 11:19:41 +02:00
yuri
68634edc0d model collection factory promise support 2019-01-30 11:18:59 +02:00
yuri
c7be90e1ad wysiwyg css fix 2019-01-29 13:10:32 +02:00
yuri
6fa3d8c769 compose email append signature 2019-01-29 12:48:31 +02:00
yuri
42e2f247e1 fix wysiwyg 2019-01-29 12:44:06 +02:00
yuri
005b9c0a8a fix job parallel 2019-01-29 12:03:02 +02:00
yuri
137e559d2e email reply to fields 2019-01-29 11:24:34 +02:00
yuri
f20b7d6577 fix email notification 2019-01-29 11:19:35 +02:00
yuri
4b22936d66 call phone dial 2019-01-28 16:00:05 +02:00
yuri
b47d738e94 Merge branch 'hotfix/5.5.7' 2019-01-28 13:11:04 +02:00
yuri
200f70c813 address state list and fixes 2019-01-28 13:08:14 +02:00
yuri
a0535c8127 meeting support assigned users 2019-01-28 12:25:26 +02:00
yuri
750d15134f entity more link multiple methods 2019-01-28 12:20:19 +02:00
yuri
43e398e078 css fix 2019-01-28 11:28:12 +02:00
yuri
e1965e6ad9 email action order 2019-01-28 10:57:49 +02:00
yuri
79d69dcb32 detail action item unshift 2019-01-28 10:57:43 +02:00
yuri
e21ac44427 Merge branch 'hotfix/5.5.7' 2019-01-28 10:47:48 +02:00
yuri
0211e4fa86 email template currency decimal places 2019-01-28 10:44:25 +02:00
yuri
dba0579b92 fix 2019-01-25 17:07:24 +02:00
yuri
8524095e75 Merge branch 'hotfix/5.5.7' 2019-01-25 17:00:08 +02:00
yuri
6d2a6feae2 fix 2019-01-25 16:50:43 +02:00
yuri
1898065da5 foreign access phone opt out 2019-01-25 16:45:24 +02:00
yuri
e76ee39840 Merge branch 'hotfix/5.5.7' 2019-01-25 16:44:53 +02:00
yuri
1b484b1c25 fix 2019-01-25 16:44:46 +02:00
yuri
a8dcaffd19 text filter foreign fields 2019-01-25 15:45:45 +02:00
yuri
5b960b476c fix 2019-01-25 14:05:37 +02:00
yuri
bd13f01718 fix tests 2019-01-25 13:57:07 +02:00
yuri
6bb717d8a9 naming fix 2019-01-25 13:53:57 +02:00
yuri
828440785e select manager changes 2019-01-25 13:13:52 +02:00
yuri
55d6d3620d Merge branch 'hotfix/5.5.7' 2019-01-25 11:20:40 +02:00
yuri
09d7d578b6 fix test 2019-01-24 16:24:20 +02:00
yuri
807991ea7d v 2019-01-24 16:03:47 +02:00
yuri
8b59919829 contact accountId disabled 2019-01-24 15:10:31 +02:00
yuri
13d8351166 orm fix foreign type 2019-01-24 12:51:44 +02:00
yuri
dfd527ae68 fix aborted stored view issue 2019-01-24 12:17:06 +02:00
yuri
40d2c95df4 fix autocomplete 2019-01-24 11:31:36 +02:00
yuri
57ef395ad2 fix autocomplete 2019-01-24 11:31:15 +02:00
yuri
8b68db4c75 Merge branch 'hotfix/5.5.7' 2019-01-23 16:38:04 +02:00
yuri
38d9085acf template importable 2019-01-23 16:37:50 +02:00
yuri
659cd2c92b Merge branch 'hotfix/5.5.7' 2019-01-22 16:41:07 +02:00
yuri
df3a449a72 fix output error 2019-01-22 16:33:56 +02:00
yuri
c7b47b1e6c recalculte formula 2019-01-22 15:38:49 +02:00
yuri
f2a090169f skipDuplicateCheck 2019-01-22 12:19:07 +02:00
yuri
3acd3a5209 acceptrance status export disabled 2019-01-22 12:00:10 +02:00
yuri
1887d25497 fix currency float 2019-01-21 15:22:56 +02:00
yuri
6d4ac8e10e default currency 2019-01-21 15:22:05 +02:00
yuri
57d47ca1d4 Merge branch 'hotfix/5.5.7' 2019-01-21 14:57:45 +02:00
yuri
fe1922586e formula function list 2019-01-21 14:44:12 +02:00
yuri
ddaef1a827 formula record count support filter as only param 2019-01-21 14:34:20 +02:00
yuri
e327457af7 Merge branch 'hotfix/5.5.6' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.7 2019-01-21 13:36:00 +02:00
yuri
fc184d42f7 Merge branch 'hotfix/5.5.6' 2019-01-21 12:59:41 +02:00
yuri
c0e9d3b347 fix 2019-01-21 12:54:00 +02:00
yuri
757757af2b merge manual 2019-01-21 12:26:06 +02:00
yuri
5803e3bc85 rerun query if deadlock 2019-01-21 12:08:53 +02:00
yuri
442e62d76c duplicate list limit 2019-01-21 11:21:06 +02:00
yuri
086e9a926f fix user password clear after save 2019-01-21 11:20:08 +02:00
yuri
90a341de2f fix list mass action 2019-01-21 11:02:54 +02:00
yuri
d4ea6d146a fix 2019-01-18 16:37:24 +02:00
yuri
af991b4008 formula record count and exists 2019-01-18 13:45:02 +02:00
yuri
c17017be9b fix lang 2019-01-18 13:44:14 +02:00
yuri
e9fcca84db fix css 2019-01-18 11:52:40 +02:00
yuri
6aa7fa589e lead layout fix 2019-01-18 11:39:51 +02:00
yuri
5a07b0a8be drop php 5.6 and 7.0 2019-01-17 17:31:56 +02:00
yuri
d9363e7486 empty merge 2019-01-17 17:28:58 +02:00
yuri
7aab1b611a fix email addres phone number 2019-01-17 17:24:43 +02:00
yuri
64be22f08e jobPopulateOptedOutPhoneNumbers 2019-01-17 17:22:31 +02:00
yuri
83a13b83d3 phone number optout invalid 2019-01-17 17:08:24 +02:00
yuri
abbf3e8a4f Merge branch 'hotfix/5.5.6' 2019-01-17 15:56:58 +02:00
yuri
971265eb6b selectAttributesDependancyMap 2019-01-17 15:09:03 +02:00
yuri
f14a699c08 post link handled on backend 2019-01-17 12:11:10 +02:00
yuri
2aea0350eb orm fix 2019-01-16 14:58:57 +02:00
yuri
18a556bce0 address list on settings layout 2019-01-16 13:56:18 +02:00
yuri
783adab8a5 city list param 2019-01-16 13:40:11 +02:00
yuri
1a802b5822 date time year quarter filters timezone 2019-01-16 12:24:37 +02:00
yuri
99bf56d031 email template current year 2019-01-16 11:29:37 +02:00
yuri
34135f0e17 fix export json 2019-01-15 15:34:23 +02:00
yuri
c22f23a1c4 phone email max length 2019-01-15 13:49:09 +02:00
yuri
5ef8588ad1 fix css 2019-01-15 13:12:57 +02:00
yuri
cef5e09a58 fix css 2019-01-15 13:09:06 +02:00
yuri
6933c599ad css hr color 2019-01-15 12:34:10 +02:00
Taras Machyshyn
10f6a202af Bug fixes 2019-01-15 12:33:39 +02:00
Taras Machyshyn
47bd030293 Installer: changed loading icon 2019-01-15 12:16:17 +02:00
yuri
86cb201539 fix css 2019-01-15 12:14:03 +02:00
yuri
619856ad58 fix cron is running check 2019-01-15 12:02:40 +02:00
yuri
b539273351 date time system formats static prop 2019-01-15 12:02:22 +02:00
yuri
dc4c4c3742 user controller restore lost code 2019-01-15 11:45:20 +02:00
Taras Machyshyn
78e81a5e7d 2019 year for installer 2019-01-14 16:48:06 +02:00
yuri
ae18ce444c fix typo 2019-01-10 14:53:02 +02:00
yuri
d1b35594e7 fix select manager 2019-01-10 14:47:44 +02:00
yuri
79befe9508 select manager originalType 2019-01-10 14:47:07 +02:00
yuri
cc75457e50 select manager transform date time 2019-01-10 14:28:18 +02:00
yuri
0fa58aaee6 text email address compose email links 2019-01-10 12:37:12 +02:00
yuri
a3f3f7cdaa fix email address modal view name 2019-01-10 12:36:58 +02:00
yuri
30dc174d30 Merge branch 'hotfix/5.5.6' 2019-01-10 12:18:19 +02:00
yuri
400198f7a3 invitation fix 2019-01-10 12:08:29 +02:00
yuri
347d3d7fef email sender fix 2019-01-10 12:08:19 +02:00
yuri
716af071b8 Merge branch 'hotfix/5.5.6' 2019-01-10 11:28:31 +02:00
yuri
43f8bbc360 v 2019-01-09 16:12:55 +02:00
yuri
1ff76bf1a0 fix field params 2019-01-09 16:12:32 +02:00
yuri
6da9662110 Merge branch 'hotfix/5.5.5' 2019-01-09 15:09:54 +02:00
yuri
8d13668595 fix ea pn repositories 2019-01-09 14:46:01 +02:00
yuri
62dcc1f55b version 2019-01-09 14:16:08 +02:00
yuri
efb0c354a5 improve select manager checkWhere 2019-01-09 13:49:35 +02:00
yuri
09c9faba9c fix typo 2019-01-09 13:35:39 +02:00
yuri
c9a6bd2d64 select manager check link restricted 2019-01-09 13:35:03 +02:00
yuri
5d32485fc5 email/phone tpl fix 2019-01-09 13:15:20 +02:00
yuri
b4aa93a185 fix sumRelated 2019-01-09 12:30:09 +02:00
yuri
a0fddbec27 Merge branch 'hotfix/5.5.5' 2019-01-08 16:43:06 +02:00
yuri
533faad8c2 footer year 2019-01-08 16:40:34 +02:00
yuri
3a24a45ade fix readme 2019-01-08 16:39:31 +02:00
yuri
643501b25d email view users 2019-01-08 16:14:48 +02:00
yuri
3c5abf88e7 cleanup 2019-01-08 15:57:18 +02:00
yuri
bec6011c8e Merge branch 'stable' 2019-01-08 14:56:08 +02:00
yuri
d6a90990bd fix email fetching by date 2019-01-08 12:12:46 +02:00
yuri
5b2c6abf90 Merge branch 'hotfix/5.5.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.4 2019-01-08 11:44:15 +02:00
Taras Machyshyn
2839c134a0 FieldManager: defaultAttributes bug fixes 2019-01-08 11:43:58 +02:00
yuri
2c3ea3b59b side menu 200px 2019-01-08 11:29:51 +02:00
yuri
72c9f5dceb fix address street 2019-01-08 11:24:50 +02:00
yuri
9a71643bed field manager util list by type 2019-01-08 11:15:12 +02:00
yuri
ffd61a6844 fix link field 2019-01-08 10:54:15 +02:00
yuri
c66cded184 fix naming 2019-01-08 10:48:05 +02:00
yuri
6c2a23cf10 Merge branch 'hotfix/5.5.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.4 2019-01-08 10:36:49 +02:00
Taras Machyshyn
9877d918b4 FieldManager: afterSave hook bug fixes 2019-01-08 10:36:10 +02:00
yuri
8a5b845b2c git push github Merge branch 'hotfix/5.5.4' of github.com:espocrm/espocrm into hotfix/5.5.4 2019-01-08 10:31:28 +02:00
yuri
c2c98db80e fix import default read only field 2019-01-08 10:31:15 +02:00
barwi
54dc83aa59 order param fix (#1179)
Thanks
2019-01-05 12:27:39 +02:00
yuri
efc8b02d11 Merge branch 'hotfix/5.5.4' 2019-01-04 16:15:34 +02:00
yuri
1c64b7bd54 related list fix 2019-01-04 16:14:50 +02:00
yuri
20560d5256 email template number format 2019-01-04 15:52:57 +02:00
yuri
1f6b7ce6ab view followers 2019-01-04 15:33:33 +02:00
yuri
0b518c4eb8 Merge branch 'hotfix/5.5.4' 2019-01-04 15:31:39 +02:00
yuri
21285aa51f fix related list header 2019-01-04 14:08:51 +02:00
yuri
76990ead8a import panel fix 2019-01-04 14:06:30 +02:00
yuri
48493f78c2 Merge branch 'hotfix/5.5.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.4 2019-01-04 12:07:20 +02:00
Taras Machyshyn
b99c06a8a4 Installation warning fix 2019-01-04 12:06:38 +02:00
yuri
563331af03 et variable label fix 2019-01-04 11:59:18 +02:00
yuri
09adf27190 template variable type 2019-01-04 11:55:27 +02:00
yuri
53c7d2ac85 currency not disabled field 2019-01-04 11:46:47 +02:00
yuri
fa0458d220 template variables fixes 2019-01-04 11:44:59 +02:00
yuri
29e0d93e4f lang 2019-01-04 11:31:21 +02:00
yuri
4f09cb3592 tempalte variables types label 2019-01-04 11:27:51 +02:00
yuri
187b76d359 template variables list filtering 2019-01-04 11:25:16 +02:00
yuri
428f26b02c fix email address storing 2019-01-04 11:03:35 +02:00
yuri
e976e627ad service massLink naming 2019-01-03 15:37:32 +02:00
yuri
48564ff8cb service link $link 2019-01-03 15:17:38 +02:00
yuri
f881d7a5c8 account filters layout change 2019-01-03 14:20:48 +02:00
yuri
5b9b345bf8 fix opp reports left join duplicates 2019-01-03 13:12:17 +02:00
yuri
c54e428d24 cs 2019-01-03 11:42:40 +02:00
yuri
2b69ac4651 fix dashlet options 2019-01-03 11:37:00 +02:00
yuri
3cd2f19ddf fix sales dashlet 2019-01-03 11:36:44 +02:00
yuri
5ed64d99f6 phone number dont store erased numeric 2019-01-03 11:08:54 +02:00
yuri
20acd516d6 orm sum fix 2019-01-03 11:04:07 +02:00
yuri
d30ef85c66 fix orm isLeft 2018-12-28 16:15:59 +02:00
yuri
5c5c3113bc Merge branch 'hotfix/5.5.4' 2018-12-28 14:50:54 +02:00
yuri
79dcec028f v 2018-12-28 14:33:00 +02:00
yuri
17bd2f3324 fix text cut 2018-12-28 13:57:03 +02:00
yuri
f4b4f6ff89 load followers acl check 2018-12-28 13:10:16 +02:00
yuri
8dd675a275 fix and refactor email address and phone number repositoties 2018-12-28 12:34:45 +02:00
yuri
f4c59e70b5 email has attachment title 2018-12-27 17:38:04 +02:00
yuri
8da0ac369c address textaread height adjust 2018-12-27 15:29:35 +02:00
yuri
a361b124d6 more functions 2018-12-27 12:17:51 +02:00
yuri
3d2d54aafa add exif to jsLibs 2018-12-26 16:37:14 +02:00
yuri
28da462c4e exif js in about 2018-12-26 16:32:23 +02:00
yuri
94a6c8d525 image preview orientation 2018-12-26 16:29:15 +02:00
yuri
8fbfce086c refactoring image 2018-12-26 16:29:05 +02:00
yuri
73ac717c4d remove thumbs with attachment 2018-12-26 15:20:14 +02:00
yuri
3fb57a1dbe webp images support 2018-12-26 13:48:13 +02:00
yuri
af9718951f record service naming change 2018-12-26 12:54:58 +02:00
yuri
d40b7aef11 charts no data 2018-12-26 12:10:28 +02:00
yuri
54ac4b5308 scriptList in metadata 2018-12-26 11:35:05 +02:00
yuri
3ee28f8d48 cs fix 2018-12-26 11:22:20 +02:00
yuri
32f8a93021 fix image 2018-12-26 11:17:51 +02:00
yuri
39624e1ddb fix logo image access 2018-12-26 11:07:24 +02:00
yuri
26b7420a2d Merge branch 'stable' 2018-12-25 18:12:16 +02:00
yuri
c010865fe0 v 2018-12-25 17:55:23 +02:00
yuri
aaeb905dcf client manager change 2018-12-25 17:54:55 +02:00
yuri
ad8b954401 fix record 2018-12-25 17:47:09 +02:00
yuri
ef9f145beb fix rtl 2018-12-25 16:17:29 +02:00
yuri
c0d04f5870 Merge branch 'stable' 2018-12-25 14:54:50 +02:00
barwi
f512bbc9fa Fix removing element from "one of" filter (#1171) 2018-12-25 14:49:20 +02:00
yuri
b8f5fe2b21 record service naming change 2018-12-25 12:43:30 +02:00
yuri
be73390fde select manager apply joins from foreign 2018-12-25 11:52:02 +02:00
yuri
17cd2bc543 fix find linked 2018-12-25 11:39:03 +02:00
yuri
74712ba931 coding style 2018-12-25 11:17:27 +02:00
yuri
0d22a238dd fix layout reset to default 2018-12-25 11:06:34 +02:00
yuri
56e9170a6b fix foreign field 2018-12-25 11:01:27 +02:00
yuri
b333fd6772 fix email template, signature image 2018-12-25 10:54:48 +02:00
yuri
4eb469eb59 multi enum allow custom options param 2018-12-24 16:30:12 +02:00
yuri
4ff0d3c654 role enum label 2018-12-24 15:56:19 +02:00
yuri
4f1dd0673e fix fa lang 2018-12-24 15:14:16 +02:00
yuri
caf05b5c26 email to case update fetched values 2018-12-24 14:39:39 +02:00
yuri
2643ab7a17 fix calls meetings dashlets order 2018-12-24 13:59:57 +02:00
yuri
6caea136a5 Merge branch 'hotfix/5.5.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.2 2018-12-24 12:59:43 +02:00
yuri
1d23d65910 formula string test function 2018-12-24 12:45:10 +02:00
yuri
8cc3de5807 enum display as label param 2018-12-24 12:36:37 +02:00
yuri
9b022df709 css sticked fix 2018-12-24 12:03:12 +02:00
yuri
aba061cb72 css sticked fix 2018-12-24 11:56:37 +02:00
yuri
ae4d725595 formule maxLineDetailCount 80 2018-12-24 11:28:00 +02:00
yuri
6a76dc41d1 formula field fit height 2018-12-24 11:26:12 +02:00
yuri
2b649c64a3 dropdown menu vertival padding 2018-12-24 11:12:18 +02:00
yuri
db2944cb15 fix email filter manager order 2018-12-24 11:02:26 +02:00
yuri
3d40184373 processLinkMultipleFieldSave improvement 2018-12-24 10:59:55 +02:00
Taras Machyshyn
e788c51ff3 Merge branch 'hotfix/5.5.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.2 2018-12-21 18:15:28 +02:00
Taras Machyshyn
d7fc389182 DBAL: fixed a problem of changing text field type 2018-12-21 18:15:10 +02:00
yuri
53f3a18245 allowing reminders for tasks when only date is specified 2018-12-21 14:44:40 +02:00
yuri
4b01bdb0d8 Merge branch 'hotfix/5.5.2' 2018-12-21 14:35:50 +02:00
yuri
ecafbe823e fix rtl 2018-12-21 13:29:27 +02:00
yuri
8abde38ebf email address phone number validate improvements 2018-12-21 12:56:56 +02:00
yuri
0fd7f768a9 email address lookup improvements 2018-12-21 12:26:28 +02:00
yuri
9c38d68b65 fix autocomplete email address autoselect 2018-12-21 11:43:22 +02:00
yuri
f0de5dde53 code style fix 2018-12-21 11:27:50 +02:00
yuri
2cdbf0ba76 email address autocomplete max size 2018-12-21 11:23:02 +02:00
yuri
34e4f4d7c2 fix date time filter after 2018-12-21 11:03:57 +02:00
yuri
61c0b58798 Merge branch 'hotfix/5.5.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.2 2018-12-20 17:44:33 +02:00
yuri
b2db0ea683 rtl theme fix 2018-12-20 17:44:27 +02:00
yuri
bd0fb02bb2 fix logo 2018-12-20 17:34:31 +02:00
yuri
f0aed23416 navbar changes 2018-12-20 17:25:05 +02:00
Taras Machyshyn
65368519c7 DBAL: compare text length 2018-12-20 17:10:42 +02:00
yuri
53db6f22d6 event acceptance status colors 2018-12-20 14:03:07 +02:00
yuri
5d47a987f4 preferences data longtext 2018-12-20 13:48:39 +02:00
yuri
4222b0be1d Merge branch 'hotfix/5.5.2' 2018-12-20 11:46:15 +02:00
yuri
a1f03e22d4 update readme 2018-12-20 11:45:01 +02:00
Eymen Elkum
cddaa7b7a1 small fix to activities service (#1158)
$selectParams in the line https://github.com/espocrm/espocrm/blob/master/application/Espo/Modules/Crm/Services/Activities.php#L1057 was not defined so I moved it to be after initialized
$selectManager->addLeftJoin(['assignedUsers', 'assignedUsers'], $selectParams); seems not needed as it is added in the line 1095
2018-12-20 11:32:49 +02:00
Eymen Elkum
3b99ca74ab small fix to activities service (#1158)
$selectParams in the line https://github.com/espocrm/espocrm/blob/master/application/Espo/Modules/Crm/Services/Activities.php#L1057 was not defined so I moved it to be after initialized
$selectManager->addLeftJoin(['assignedUsers', 'assignedUsers'], $selectParams); seems not needed as it is added in the line 1095
2018-12-20 11:31:02 +02:00
yuri
58dee36f1b fix timezone issue in datetime on/today filters 2018-12-20 11:26:26 +02:00
yuri
ae24fc07ba preset filter all label 2018-12-20 11:14:07 +02:00
yuri
13ca0db761 fix autocomplete max size 2018-12-20 11:09:56 +02:00
yuri
42641396c6 activity all day select 2018-12-19 17:13:04 +02:00
yuri
04326171e7 fix event repository 2018-12-19 17:03:50 +02:00
yuri
d90d450bef all day event 2018-12-19 16:48:06 +02:00
yuri
d2b20154de duplicate function in view 2018-12-19 11:41:52 +02:00
yuri
b176d866d0 fix template image 2018-12-19 11:22:55 +02:00
yuri
07a9a79626 chart fix 2 2018-12-18 15:54:08 +02:00
yuri
b60da458d5 fix chart 2018-12-18 15:47:15 +02:00
yuri
40ffbc550f fix opp by stage 2018-12-18 15:18:16 +02:00
yuri
35076148cc opp dashlets fiscal year filters 2018-12-18 15:13:40 +02:00
yuri
3175ff9a76 settings test 2018-12-18 13:39:46 +02:00
yuri
81457b1e48 fix accounts tasks 2018-12-18 13:15:40 +02:00
yuri
e9d5472d72 config test update 2018-12-18 12:52:33 +02:00
yuri
7c4bd371e7 Merge branch 'hotfix/5.5.2' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.2 2018-12-18 12:48:57 +02:00
Taras Machyshyn
98ed7e4dd3 Added systemItems 2018-12-18 12:45:54 +02:00
yuri
8404ef1d83 update fontawesome 2018-12-18 12:39:28 +02:00
yuri
0d99d84adf xmlwriter requirement 2018-12-18 12:14:12 +02:00
yuri
8492962923 settings filter smtp info 2018-12-18 11:25:50 +02:00
yuri
99627f856f job fail not started ready 2018-12-17 16:33:30 +02:00
yuri
b917cc20f6 fix relationship order 2018-12-17 14:25:44 +02:00
yuri
c582e88b7b version 2018-12-17 14:09:17 +02:00
yuri
9a00603600 theme navbarAdjustmentHandler 2018-12-17 14:07:51 +02:00
yuri
550b5e3bb4 iconv requirement 2018-12-17 13:49:28 +02:00
yuri
5ceb57a2cf config refactoring 2018-12-17 13:47:01 +02:00
yuri
16e96f6454 outboundEmailBccAddress user items 2018-12-17 11:06:08 +02:00
yuri
c162ee5337 email invitation and reminder allow link usage 2018-12-17 10:58:50 +02:00
yuri
66d34e7035 Merge branch 'hotfix/5.5.1' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.1 2018-12-14 16:25:05 +02:00
Taras Machyshyn
f57f7f72ed Added skipBackup option for extensions 2018-12-14 16:21:39 +02:00
yuri
c911cfe310 datetime hasSeconds param 2018-12-14 12:43:35 +02:00
yuri
223c8b53b4 scheduled job log status style 2018-12-14 12:15:01 +02:00
yuri
add1154014 jobPeriodForEndedProcess param 2018-12-14 12:06:10 +02:00
yuri
6ede731cfe fix jobs 2018-12-13 18:26:31 +02:00
yuri
0619cc0e3d fix htmlizer 2018-12-13 18:12:52 +02:00
yuri
06a686ad1a fix cron 2018-12-13 18:07:53 +02:00
yuri
15aed06f9d Merge branch 'hotfix/5.5.1' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.1 2018-12-13 18:05:03 +02:00
yuri
012936dc7d jobs running processing 2018-12-13 18:04:45 +02:00
Taras Machyshyn
0fb5b4a323 LDAP: Bug fixes for a portal user 2018-12-13 17:51:25 +02:00
Taras Machyshyn
dc3cfb4c23 Merge branch 'hotfix/5.5.1' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.5.1 2018-12-13 16:53:07 +02:00
Taras Machyshyn
450e7894aa File manager improvements 2018-12-13 16:36:39 +02:00
yuri
b8e7dbd147 followers link forbidden 2018-12-13 12:44:43 +02:00
yuri
a41c53d7f4 css audited fields fix 2018-12-12 16:22:23 +02:00
yuri
419faa2a47 email phone fields audited param 2018-12-12 15:39:40 +02:00
yuri
1d3b181a1c readme update 2018-12-12 12:37:57 +02:00
yuri
e0d4ec4a28 fix as soon as possible job scheduling 2018-12-12 12:34:55 +02:00
yuri
f95d8cbdde version 2018-12-12 12:30:54 +02:00
yuri
e22c9151d1 email message id disable text fitler 2018-12-12 12:29:13 +02:00
yuri
f6ae58a05d radio contanier css 2018-12-12 12:27:36 +02:00
yuri
cb3fc1c951 access info email fix 2018-12-12 11:48:21 +02:00
yuri
7f84fd2b4c password change request fix 2018-12-12 11:39:38 +02:00
yuri
518a67bf8a attachment document icon 2018-12-11 18:13:25 +02:00
yuri
cc6af53eff stream dashlet lit icon 2018-12-11 17:42:52 +02:00
Taras Machyshyn
7b27f62f10 Bug fixes for integration tests 2018-12-11 14:16:24 +02:00
yuri
16d69a1925 async from fork 2018-12-11 11:24:02 +02:00
yuri
66fb39c98d fix email to contact 2018-12-10 13:01:10 +02:00
yuri
9bfd68ad24 fix link parent 2018-12-10 10:50:16 +02:00
yuri
846665bd57 css fix 2018-12-07 19:20:34 +02:00
yuri
04f92584d4 global search input change 2018-12-07 19:14:32 +02:00
yuri
3891422735 fix autocomplete 2018-12-07 18:56:01 +02:00
yuri
a806c3336d entity acl 2018-12-07 17:49:44 +02:00
yuri
5310fd38bf user field level access fix 2018-12-07 12:30:18 +02:00
yuri
507df94427 portal admin forbid access 2018-12-07 12:16:19 +02:00
yuri
f55ea8ddbb fix task overdue date end 2018-12-07 11:54:39 +02:00
yuri
865030914e css 2018-12-07 11:52:51 +02:00
yuri
e5baa91433 fix autocomplete 2018-12-07 11:09:59 +02:00
yuri
059eaccbe2 fix css 2018-12-06 17:44:09 +02:00
yuri
b432e1ad2c login fixed 2018-12-06 17:28:41 +02:00
yuri
e9c25c1330 fix template variables ui 2018-12-06 15:24:36 +02:00
yuri
bc1a263b13 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-06 14:58:58 +02:00
Taras Machyshyn
98ec83aa36 Orm converter fixes 2018-12-06 14:58:25 +02:00
yuri
fe2b527561 email phone fieldType 2018-12-06 14:06:50 +02:00
yuri
57d57160dd css fix 2018-12-06 13:46:34 +02:00
yuri
c60964ac16 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-06 13:20:06 +02:00
Taras Machyshyn
9d4c5a4d1b Orm converter changes 2018-12-06 13:19:31 +02:00
yuri
2e6cd93908 ditch name attributes 2018-12-06 11:39:30 +02:00
yuri
f9e4d35cad lead filters layout 2018-12-05 16:58:27 +02:00
yuri
96ca03371e more autofill ditch 2018-12-05 15:14:44 +02:00
yuri
f3e4da9e0b ditch chrome autofill 2018-12-05 15:00:24 +02:00
yuri
bcde89b52e Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-04 17:24:32 +02:00
Taras Machyshyn
6becdc495d Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-04 17:24:05 +02:00
Taras Machyshyn
483130176c Integration tests for Field Manager 2018-12-04 17:23:53 +02:00
yuri
4481a3d10e fix css 2018-12-04 16:44:35 +02:00
yuri
0caf9a63fc Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-04 15:06:35 +02:00
Taras Machyshyn
82a08d3a6a Tests: bug fixes 2018-12-04 15:06:26 +02:00
yuri
a4bbf889ec Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-04 14:44:55 +02:00
yuri
a4beb96754 fix email import last date today 2018-12-04 14:44:51 +02:00
Taras Machyshyn
e4212161b5 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-04 14:31:08 +02:00
Taras Machyshyn
f271ded65b FieldManager: bug fixes 2018-12-04 14:30:57 +02:00
yuri
5eff7ff3fe email import fixes 2018-12-04 13:35:10 +02:00
yuri
342542622f fix css 2018-12-03 17:14:07 +02:00
yuri
0be995a108 user layout 2018-12-03 16:26:32 +02:00
yuri
6486b0b4f8 fix global search button 2018-12-03 16:17:50 +02:00
yuri
c3f79087fd global search tpl changes 2018-12-03 16:10:26 +02:00
yuri
87caf8b58f Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-12-03 12:56:34 +02:00
yuri
4a94813509 emailForceUseExternalClient param 2018-12-03 12:52:26 +02:00
yuri
8c9429d77a success color fix 2018-12-03 12:26:58 +02:00
yuri
a0c3524056 side navbar changes 2018-12-03 12:10:13 +02:00
Taras Machyshyn
beba210031 Test fixes 2018-12-03 10:31:07 +02:00
Taras Machyshyn
c50f28325a Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-30 19:18:36 +02:00
Taras Machyshyn
4efa575201 FieldManager: bug fixes 2018-11-30 19:18:28 +02:00
yuri
bf8bfb1d23 email from, address not storable fields 2018-11-30 17:23:53 +02:00
Taras Machyshyn
40eaa026b2 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-30 16:38:35 +02:00
Taras Machyshyn
4c7d2d66f0 FieldManager: bug fixes 2018-11-30 16:38:26 +02:00
yuri
cfcf5bacea Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-30 14:28:24 +02:00
yuri
1f12365518 lang 2018-11-30 14:28:17 +02:00
yuri
538a00b3eb job number bigint 2018-11-30 14:28:12 +02:00
Taras Machyshyn
ba623fe3f0 Metadata bug fixes 2018-11-30 14:20:15 +02:00
yuri
5a27041a54 job number int 2018-11-30 13:33:29 +02:00
yuri
c899cf4098 auth log auth method 2018-11-30 12:37:04 +02:00
yuri
a99b84bb86 job number 2018-11-30 11:59:54 +02:00
yuri
c0bede1670 fix notice 2018-11-30 10:56:33 +02:00
yuri
868f80340b entity icon names 2018-11-29 18:27:36 +02:00
yuri
5f0b692bc4 css fix 2018-11-29 17:35:06 +02:00
yuri
73ad04c049 e0 q0 queues 2018-11-29 16:31:51 +02:00
yuri
5d6cdc2fee job queue 2018-11-29 15:16:42 +02:00
yuri
fc712e0869 increase email portion size 2018-11-29 13:31:39 +02:00
yuri
f049e3f482 group email checking in separate jobs 2018-11-29 13:29:36 +02:00
yuri
19e517558b hack for imap not supporting search by UID 2018-11-29 13:29:08 +02:00
yuri
7c9a115574 process note acl job 2018-11-29 12:31:10 +02:00
yuri
93f51f7087 fix internal jobs 2018-11-29 12:17:04 +02:00
yuri
c9bb6dfdde fix note collection 2018-11-28 17:25:49 +02:00
yuri
5c14eda02a enum style 2018-11-28 16:45:58 +02:00
yuri
8ee0cb3af5 update zend mail 2018-11-28 12:50:08 +02:00
yuri
1404e2a90a mass email small fixes 2018-11-28 12:40:29 +02:00
yuri
b58d72e9fd cleanup 2018-11-28 11:16:38 +02:00
yuri
be03a3e175 fix create from email 2018-11-28 11:16:16 +02:00
yuri
bf46d970b8 css fix 2018-11-27 16:53:07 +02:00
yuri
c36e405acd fix naming 2018-11-27 16:24:23 +02:00
yuri
ebe4f78a62 css fix 2018-11-27 16:18:45 +02:00
yuri
5bda3e14d3 css colors fixes 2018-11-27 16:13:01 +02:00
yuri
cac0684696 status enum refactoring 2018-11-27 12:02:56 +02:00
yuri
6b89707c6e field search params naming 2018-11-27 11:10:06 +02:00
yuri
efcdbbe30c link link multiple search data naming 2018-11-26 16:41:24 +02:00
yuri
ce4c86de9d fix tooltip 2018-11-26 11:54:45 +02:00
yuri
d9b69ae61b lt lang fix 2018-11-26 11:33:10 +02:00
yuri
412174e8bb lv lang 2018-11-26 11:32:35 +02:00
yuri
2691a5dbaa ProcessNoteAclQueue scheduling 1 minute 2018-11-26 11:27:54 +02:00
yuri
eef34cec7c fix edit model reset 2018-11-26 11:26:48 +02:00
yuri
0449396678 record service link lists access lists 2018-11-26 11:18:06 +02:00
yuri
5b456b9d44 email to case: fill description and attachments 2018-11-23 16:22:33 +02:00
yuri
adb44b1b0a email note received improvements 2018-11-23 16:03:37 +02:00
yuri
4f5bd4b705 fix detail header sync 2018-11-22 13:21:57 +02:00
yuri
9370031805 cleanup 2018-11-22 13:20:19 +02:00
yuri
8ee258272b htmlizer prevent looping 2018-11-22 12:02:03 +02:00
yuri
fd5dfd769a htmlizer loop through collection 2018-11-21 16:55:03 +02:00
yuri
fb6d6e7599 scope icons 2018-11-21 13:22:05 +02:00
yuri
8c90cafcba hide access button for non admin users 2018-11-21 13:00:54 +02:00
yuri
36f3d3b479 htmlizer entity collection 2018-11-21 11:53:37 +02:00
yuri
3647fcb48e fix thousand separator 2018-11-20 17:28:28 +02:00
yuri
2368c3c8a7 css color 2018-11-20 17:01:14 +02:00
yuri
60a041e454 stick buttons all the way 2018-11-20 16:43:29 +02:00
yuri
5613938877 css fix 2018-11-20 16:32:17 +02:00
yuri
8817a1a19e email notification read 2018-11-20 15:46:06 +02:00
yuri
5b4caedbef list mode buttons size 2018-11-20 13:37:31 +02:00
yuri
b431b1e095 last view icon color 2018-11-20 13:26:44 +02:00
yuri
dac295ea19 has attachment tpl fix 2018-11-19 15:39:52 +02:00
yuri
2c2ac08bf7 fix upload attacment 2018-11-19 15:20:20 +02:00
yuri
3b8e9d8e47 css fixes 2018-11-19 14:56:47 +02:00
yuri
9682671de2 centered logo 2018-11-19 13:35:27 +02:00
yuri
29559e571c css colors 2018-11-19 13:06:41 +02:00
yuri
cfb25d068d Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-19 12:43:38 +02:00
yuri
9b8c6bef99 task: complete button on detail modal 2018-11-19 12:08:15 +02:00
yuri
168a1ea6e5 email compose: restore last html value 2018-11-19 11:20:46 +02:00
yuri
1515517bc3 kanban icon 2018-11-19 11:12:06 +02:00
yuri
7b20c9e448 fix css 2018-11-19 11:07:42 +02:00
yuri
008c9e6f7b fix email import duplicate fromString 2018-11-19 11:05:58 +02:00
yuri
d26edd74d1 fix email import 2018-11-16 12:37:25 +02:00
yuri
6f3be6fdde fix email notification 2018-11-16 11:32:50 +02:00
yuri
603019116b email import fix 3 2018-11-16 11:19:18 +02:00
Taras Machyshyn
0f7b5ea1f4 Tests: bug fixes 2018-11-16 11:14:38 +02:00
yuri
d62a83ba0c sorting icon 2018-11-15 17:53:32 +02:00
yuri
b873f850af logo float change 2018-11-15 17:30:28 +02:00
yuri
16e45f6c4e fix email import 2 2018-11-15 16:17:43 +02:00
yuri
5c34747a74 email fix body plain action 2018-11-15 13:44:17 +02:00
yuri
cd4099cf4b email import parallel fixes 2018-11-15 13:21:39 +02:00
yuri
4ceb22c0ad category tree expanded icon 2018-11-14 16:43:58 +02:00
yuri
cd76a63c2e cleanup 2018-11-14 16:38:42 +02:00
yuri
6871416bc1 text cut improvement 2018-11-14 15:41:35 +02:00
yuri
f401e08d0e ui action handler 2018-11-14 12:29:39 +02:00
yuri
c8dd17ffa7 fix lang 2018-11-14 11:35:34 +02:00
yuri
766e8cbcf7 category tree menu 2018-11-14 11:34:16 +02:00
yuri
86ad6a262b last viewed layout change 2018-11-13 17:21:50 +02:00
yuri
614900443d fix last viewed 2 2018-11-13 17:14:22 +02:00
yuri
0be7bbd57e fix last viewed 2018-11-13 17:07:29 +02:00
yuri
5b45cc552f fix mass email smtp account field 2018-11-13 16:55:41 +02:00
yuri
b6653f99be inline edit disabled param 2018-11-13 16:38:08 +02:00
yuri
520b3c5e89 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-13 15:51:24 +02:00
yuri
ebe2ca9e9d preferecnes button change 2018-11-13 15:46:54 +02:00
yuri
63740b17bb update timepicker version 2018-11-13 15:42:57 +02:00
Taras Machyshyn
800a7af874 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-13 15:37:43 +02:00
Taras Machyshyn
75bdd68779 DBAL: default value for MariaDB 10.2.7+ 2018-11-13 15:37:28 +02:00
yuri
0f9ac24f52 datetime minuteStep param 2018-11-13 15:35:18 +02:00
yuri
5ac39c53b3 fix stream refresh icon 2018-11-13 15:09:45 +02:00
yuri
3edc895edc fix search 2018-11-13 14:52:49 +02:00
yuri
ecc06c5917 last viewed show more 2018-11-13 13:01:58 +02:00
yuri
c672e1b435 css fixes 2018-11-13 12:19:21 +02:00
yuri
9165660286 follow button icon 2018-11-13 12:14:42 +02:00
yuri
60673c579f css fixes 2018-11-13 12:11:17 +02:00
yuri
3967864df7 fix css 2018-11-12 16:51:23 +02:00
yuri
c76e288b6b fix css 2018-11-12 16:41:22 +02:00
yuri
a4549b0c12 entity manager check client defs exists 2018-11-12 16:24:05 +02:00
yuri
3fc838a2b4 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-12 16:03:03 +02:00
yuri
a81fbe6c92 side menu improvement 2018-11-12 16:01:10 +02:00
Taras Machyshyn
34429bbcf5 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-12 12:16:05 +02:00
Taras Machyshyn
1cb7d943ec Test fixes 2018-11-12 12:15:50 +02:00
yuri
a57af66b2b lang fix 2018-11-12 11:52:29 +02:00
yuri
59c388a3f5 fix naming 2018-11-12 11:50:36 +02:00
yuri
282c3e32fc fix de lang 2018-11-12 11:48:38 +02:00
yuri
e841d43a06 fix css 2018-11-12 11:24:02 +02:00
yuri
474d7b638c fix list sticked 2018-11-12 11:23:56 +02:00
yuri
44c9d10cbb Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-12 10:59:54 +02:00
yuri
e863e3f56d jquery length instead of size 2018-11-12 10:53:55 +02:00
yuri
432f5a5647 fix stick 2018-11-09 17:27:27 +02:00
yuri
3545b560fe css fix 2018-11-09 17:21:11 +02:00
yuri
4e86ce2a77 search add field label 2018-11-09 17:13:31 +02:00
yuri
4881787cf0 stick list view actions 2018-11-09 17:08:09 +02:00
Taras Machyshyn
3172cdbd55 DBAL: bug fixes 2018-11-09 15:18:54 +02:00
yuri
6601922c13 fix cleanup jobs 2018-11-09 12:15:40 +02:00
yuri
049d6bc4de fix typo 2018-11-09 11:08:50 +02:00
yuri
9fddd6b1ba it lang 2018-11-09 11:03:35 +02:00
yuri
ea4762e3d0 fix css style 2018-11-08 18:36:40 +02:00
yuri
cb44f0fe13 relationship panel menu order change 2018-11-08 18:07:29 +02:00
yuri
a8fa776713 fix css 2018-11-08 17:53:55 +02:00
yuri
cb82f0df0c icons change 2018-11-08 17:25:53 +02:00
yuri
c6fc914a4e dropdown button style change 2018-11-08 15:04:54 +02:00
yuri
c7096574ab fix body plain modal 2018-11-08 15:03:06 +02:00
yuri
c98a3ae40a Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-08 13:56:36 +02:00
yuri
39e4250998 fix entity manager create ntity 2018-11-08 13:48:18 +02:00
Taras Machyshyn
6c44253798 Integration tests improvements 2018-11-08 13:35:08 +02:00
yuri
4836bce5b0 record service unset id 2018-11-08 13:32:18 +02:00
yuri
184a889301 entity manager createEntity 2018-11-08 13:14:05 +02:00
yuri
9b0609a7f1 acl tests 2018-11-08 12:50:38 +02:00
yuri
824216035f wysiwyg: support on list 2018-11-08 11:37:23 +02:00
yuri
e690231f05 fix filter check icon 2018-11-07 15:59:52 +02:00
yuri
22201f83b2 entity manager reserved names 2018-11-07 15:38:17 +02:00
yuri
be4ab13f6d fix formula field 2018-11-07 14:23:33 +02:00
yuri
24186ae143 custom client routes 2018-11-07 12:28:41 +02:00
yuri
eba8cc630d router cleanup and ditch logout route 2018-11-07 11:57:22 +02:00
yuri
e835e0d269 cleanup 2018-11-07 11:46:08 +02:00
yuri
c420892800 disable ability to edit scheduled job job 2018-11-07 11:39:48 +02:00
yuri
ada7c067b3 fix cleanup deleted records 2018-11-07 11:32:52 +02:00
yuri
8109c8460e code formatting fix 2018-11-06 17:05:29 +02:00
yuri
aeddff23ad gruntfile addition 2018-11-06 16:40:41 +02:00
Taras Machyshyn
c93c05fe8c Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-06 16:33:30 +02:00
Taras Machyshyn
01d0020b28 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-06 16:28:06 +02:00
yuri
aa78f4f9db fix upgrade id 2018-11-06 16:24:13 +02:00
yuri
7879b57ea3 controller manager fix 2018-11-06 16:18:34 +02:00
yuri
a4794cac60 super admin only config params 2018-11-06 16:08:10 +02:00
yuri
6bd6510ce9 style fix 2018-11-06 15:28:43 +02:00
yuri
88225eb590 Persian lang 2018-11-06 15:24:22 +02:00
yuri
ef1c1d2a24 placeholders info 2018-11-06 15:04:57 +02:00
yuri
f461f1968d email template today now placeholders 2018-11-06 14:56:04 +02:00
yuri
2513edc53a phone number link wo spaces 2018-11-06 14:32:55 +02:00
yuri
40d03c6848 jobs fixes improvements 2018-11-06 12:27:34 +02:00
yuri
75d6a728b1 about tpl 2018-11-05 16:58:43 +02:00
yuri
739d1dd3d1 fix msg 2018-11-05 16:50:12 +02:00
yuri
97b338fc5d cleanup 2018-11-05 16:49:48 +02:00
yuri
5350cf8e52 parallel jobs and daemon 2018-11-05 16:45:42 +02:00
yuri
0c2959da80 calendar dashlet icon 2018-11-02 15:03:45 +02:00
yuri
37cba66ad7 timeline shared by default 2018-11-02 15:00:00 +02:00
yuri
03606ae644 fix currency 2018-11-02 13:53:26 +02:00
yuri
292453e425 call date end on layout 2018-11-02 13:07:19 +02:00
yuri
9639840b46 Merge branch 'master' of github.com:espocrm/espocrm 2018-11-02 12:56:09 +02:00
Arkady
db6cdec9b5 fix typo (#1103) 2018-11-02 12:55:51 +02:00
yuri
b74c17c582 fix timeline 2018-11-02 12:54:05 +02:00
yuri
20a139ca0a timeline bust timeframes 2018-11-02 12:44:20 +02:00
yuri
4fd5555146 timeline create datestart 2018-11-01 16:17:32 +02:00
yuri
2e4cc5f0be activities controller change 2018-11-01 15:52:47 +02:00
yuri
983dc7c376 fix ipad more menu 2018-11-01 14:50:59 +02:00
Taras Machyshyn
f461434fb4 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-11-01 10:17:49 +02:00
yuri
907655bb09 uniqid fix 2018-10-31 15:58:02 +02:00
yuri
41d6a0a099 is replied css 2018-10-31 13:15:39 +02:00
yuri
573d14f854 fix panel actions 2018-10-31 13:04:11 +02:00
yuri
c0719694ba panel actions improvement 2018-10-31 12:59:52 +02:00
yuri
49aea5aad1 load empty link name fields 2018-10-30 12:45:03 +02:00
yuri
076569027a loadNotJoinedLinkFields optimization 2018-10-30 12:37:18 +02:00
yuri
2a7cc3aeb0 fiscal year start 2018-10-30 11:57:22 +02:00
Taras Machyshyn
89dca6086d Installation: Added user type 2018-10-29 16:45:14 +02:00
Taras Machyshyn
c00bbdb0fe Merge commits 2018-10-29 16:32:58 +02:00
yuri
60bdf881b1 ORM: fiscal year and quarter functions 2018-10-29 15:58:17 +02:00
yuri
ae9237c4b9 portal user icon 2018-10-29 12:09:04 +02:00
yuri
51a221809b acl field-level additional attribute list 2018-10-29 11:44:12 +02:00
yuri
d7d176c169 merge 2018-10-29 10:51:49 +02:00
yuri
374413eaae version 2018-10-29 10:23:19 +02:00
yuri
96538a2b6f fix order by address 2018-10-29 10:16:07 +02:00
yuri
39a3a6dbd2 users nonAdminReadOnlyAttributeList 2018-10-29 10:15:37 +02:00
Taras Machyshyn
58d959fdef Installer: bug fixes 2018-10-26 15:14:30 +03:00
Taras Machyshyn
3de7238d7b Installer: bug fixes 2018-10-26 14:58:38 +03:00
yuri
66b2065d7c user fixes 2018-10-26 14:38:18 +03:00
Taras Machyshyn
e4b012c40f Installer: minor bug fixes 2018-10-26 14:03:56 +03:00
yuri
adf5283375 user and test fixes 2018-10-26 13:23:03 +03:00
yuri
1f5baa9d70 fix unit test 2018-10-26 12:54:52 +03:00
yuri
7d09306047 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-10-26 12:41:40 +03:00
Taras Machyshyn
c3ae8cdd62 Fixed unnecessary index 2018-10-26 12:07:32 +03:00
yuri
fef6ed5f34 api key authorization 2018-10-26 12:06:20 +03:00
yuri
778b212bd0 auth changes 2018-10-25 18:34:39 +03:00
yuri
d675bdfdf2 api users auth 2018-10-25 17:53:18 +03:00
Taras Machyshyn
0923414af1 Added requirements for MariaDB 2018-10-25 15:36:40 +03:00
yuri
d9b0dce5f4 fix check all results 2018-10-25 11:31:14 +03:00
yuri
b28bae20b7 user api type 2018-10-24 16:46:48 +03:00
yuri
a235ad1bc3 portal user side panel fields 2018-10-24 15:28:28 +03:00
yuri
db0114b600 fix portal row actions link 2018-10-24 15:03:55 +03:00
yuri
2aad48505e user type 2018-10-24 15:03:39 +03:00
yuri
347493dbbd fix password preview 2018-10-23 17:00:26 +03:00
yuri
f09e69e9b1 generate btn fix 2018-10-23 16:54:48 +03:00
yuri
2c410f4ecc fix 2018-10-23 15:25:31 +03:00
yuri
5e26f8da37 fix 2018-10-23 15:24:57 +03:00
yuri
8d6b86529b related list url 2018-10-23 15:20:55 +03:00
yuri
18859963e5 fix import 2018-10-23 12:31:41 +03:00
yuri
37828e5716 order by first name and last name 2018-10-23 12:30:20 +03:00
yuri
27bb69a4f7 orderBy backward compatibility 2018-10-23 11:35:06 +03:00
yuri
c41c994772 fix order by address 2018-10-22 16:30:39 +03:00
yuri
5610569fe7 ditch collection asc 2018-10-22 16:20:11 +03:00
yuri
ba0ad4dfe9 orderBy param 2018-10-22 15:11:06 +03:00
yuri
049443f4cc fix naming 2018-10-22 10:41:19 +03:00
yuri
ba76ea086c fix portal isDefault 2018-10-22 10:40:38 +03:00
yuri
a7beec2548 admin panel change 2018-10-19 14:52:14 +03:00
yuri
49bc5a5d5d fix cron manager 2018-10-19 13:53:27 +03:00
yuri
d9fd6bfc87 scheduled job delete pending jobs after scheduling change 2018-10-19 13:37:33 +03:00
yuri
4d5f0fce6c aclAllowDeleteCreatedThresholdPeriod 2018-10-19 13:23:59 +03:00
yuri
e7114d9c4c fix controller manager 2018-10-19 13:20:56 +03:00
yuri
8957a9ba5b css fix 2018-10-19 12:18:36 +03:00
yuri
a9ce82c8e9 ditch clear local cache from menu 2018-10-19 11:56:11 +03:00
yuri
85f1e05860 cron: ability to run more frequent than once per minute 2018-10-18 17:13:10 +03:00
yuri
5bdf4cb099 style fix 2018-10-18 16:48:32 +03:00
yuri
c52b1f8cc3 scheduled job fix 2018-10-18 16:09:26 +03:00
yuri
5176aef78c controller manager refactoring 2018-10-18 14:11:39 +03:00
yuri
8fc0ed81ff acl get level fix 2018-10-18 13:49:07 +03:00
yuri
b84838bfbb naming fix 2018-10-18 11:51:01 +03:00
yuri
2adf724458 menu debiders 2018-10-18 11:50:39 +03:00
yuri
fd8f546d1f email create contact in b2b mode 2018-10-18 11:11:48 +03:00
yuri
c33de304dc compose email relate with parent 2018-10-18 11:07:53 +03:00
yuri
c6afb86765 kanban sticking header 2018-10-17 16:47:04 +03:00
yuri
71e2af6c4c naming fix 2018-10-17 15:13:02 +03:00
yuri
15b74e19d7 hide popovers on modal open 2018-10-17 15:11:25 +03:00
yuri
74eece5956 naming fix 2018-10-17 15:04:34 +03:00
yuri
ada764bb7f text varchar null if empty 2018-10-17 14:50:47 +03:00
yuri
e2e99009a3 warn if old class naming is used 2018-10-17 14:39:09 +03:00
yuri
8e879e2d73 po module name in file name 2018-10-17 14:24:26 +03:00
yuri
7808586751 fix stylesheed loading 2018-10-17 14:03:43 +03:00
yuri
23e66d58d3 filling contact when create case from contact 2018-10-17 13:55:29 +03:00
yuri
214b8baf8f fix header buttons 2018-10-16 14:51:30 +03:00
yuri
756a913e94 po script improvement 2018-10-16 13:48:14 +03:00
yuri
720bdc7aaf ru lang 2018-10-16 13:34:06 +03:00
yuri
b49d1e2e2c load default theme on log out 2018-10-16 13:22:35 +03:00
yuri
c0e76b05e2 css refactoring 2018-10-16 12:59:29 +03:00
yuri
ca0e7c781e css fix 2018-10-16 11:06:12 +03:00
yuri
50bcc77cd0 layout manager css fix 2018-10-15 17:02:22 +03:00
yuri
6decfd05a0 layout manager css fix 2018-10-15 16:53:11 +03:00
yuri
6bae680e4a layout manager css fix 2018-10-15 16:37:36 +03:00
yuri
3532f4136c merge in action history 2018-10-15 15:52:23 +03:00
yuri
af406bb473 layout manager grid fix 2018-10-15 15:44:51 +03:00
yuri
78decd9b67 dynamic logic fix 2018-10-15 15:43:02 +03:00
yuri
4d2a27d908 side/relationship panel conditions 2018-10-15 15:40:15 +03:00
yuri
f2afdcba6f fix int field 2018-10-15 13:54:16 +03:00
yuri
2d4c43e51a version 2018-10-15 13:09:45 +03:00
yuri
43124e3c06 update php-mime-mail-parser 2018-10-15 11:31:07 +03:00
yuri
7b80a0a60e mass update permission 2018-10-15 11:08:16 +03:00
yuri
74fc9007dd Merge branch 'stable' 2018-10-12 16:08:38 +03:00
yuri
e0705293e1 Merge branch 'hotfix/5.4.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.4.4 2018-10-12 15:40:23 +03:00
Taras Machyshyn
29f3f7c330 Bug fixes for utf8mb4 2018-10-12 15:39:09 +03:00
yuri
ef2d83ab08 panel filters change 2018-10-12 13:05:32 +03:00
yuri
ba9520d6f5 record post search 2018-10-11 17:03:30 +03:00
yuri
1cbab04c35 account role fix 2018-10-11 15:43:49 +03:00
yuri
e8deed9244 fix activity list 2018-10-11 12:52:00 +03:00
yuri
b3ff690497 contact listen to inactive 2018-10-11 12:43:19 +03:00
yuri
a8f03abd1d relation modal fixes 2018-10-11 12:38:26 +03:00
yuri
9be41a4e37 Merge branch 'hotfix/5.4.4' 2018-10-10 17:03:52 +03:00
yuri
0e0e81f5ae Merge branch 'hotfix/5.4.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.4.4 2018-10-10 17:03:27 +03:00
yuri
b020cc1c39 activities list modal 2018-10-10 17:02:56 +03:00
Taras Machyshyn
4eab7f6a88 FieldManager improvements 2018-10-10 15:26:55 +03:00
yuri
8f213f819b fix activities email 2018-10-10 13:04:17 +03:00
yuri
4bd6f761e5 relatin view label 2018-10-10 11:33:18 +03:00
yuri
9dfcbb7c8e mass select only if allowed 2018-10-09 17:01:37 +03:00
yuri
488981753a related link modal 2018-10-09 16:50:37 +03:00
Taras Machyshyn
7622cdc1cf Merge branch 'hotfix/5.4.4' 2018-10-09 12:38:40 +03:00
Taras Machyshyn
bf503db267 LDAP: hide new options 2018-10-09 12:38:09 +03:00
Taras Machyshyn
fe6ffe4555 Merge branch 'hotfix/5.4.4' 2018-10-09 12:18:20 +03:00
Taras Machyshyn
028ad25fc6 LDAP: bug fixes for portal users 2018-10-09 12:09:00 +03:00
yuri
a6d0a90c73 contact title label 2018-10-08 14:25:12 +03:00
yuri
716cd2e729 repository getEntityType 2018-10-08 11:04:18 +03:00
yuri
034e06f636 templateFileManager fix 2018-10-08 11:03:00 +03:00
yuri
dfa4627998 entity name plural 2018-10-08 11:02:05 +03:00
yuri
942b6f3305 lang fix 2018-10-03 14:51:46 +03:00
yuri
fda03757fc template manager 2018-10-03 14:47:33 +03:00
yuri
6955ea581c Merge branch 'hotfix/5.4.4' 2018-10-03 11:14:42 +03:00
yuri
950d98528a fic ics summary 2018-10-01 13:45:28 +03:00
yuri
8b2d62d27a css navbar fix 2018-10-01 11:13:25 +03:00
yuri
2b3d1e9ce0 Merge branch 'hotfix/5.4.4' 2018-09-28 17:20:57 +03:00
yuri
15d5985ec4 Merge branch 'hotfix/5.4.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.4.4 2018-09-28 17:20:36 +03:00
Taras Machyshyn
bd94543b71 PHP path 2018-09-28 17:19:58 +03:00
yuri
ab93196432 css fix 2018-09-28 16:57:52 +03:00
yuri
d8c5955ba4 autocomplete max height 2018-09-28 16:44:48 +03:00
yuri
0f64611843 update autocomplete 2018-09-28 16:41:41 +03:00
yuri
7244204f35 fix address country 2018-09-28 15:25:20 +03:00
yuri
6eee3c3432 address country list 2018-09-28 14:46:42 +03:00
yuri
3801de3449 fix varchar autocomplete 2018-09-28 14:11:43 +03:00
yuri
d97fefebf8 varchar options additions 2018-09-28 13:40:41 +03:00
yuri
06d55f2746 Merge branch 'hotfix/5.4.4' 2018-09-28 12:42:13 +03:00
yuri
c54bc30bda validation popover error fix 2018-09-28 12:41:31 +03:00
yuri
f2138a4e23 field view fix 2018-09-28 12:06:46 +03:00
yuri
8d0bb8fc12 varchar suggestion picklist 2018-09-28 11:44:04 +03:00
yuri
57c5d4b15c stream post: record link shorter form 2018-09-27 13:26:51 +03:00
yuri
41433ecbf5 it_IT lang 2018-09-27 12:04:12 +03:00
yuri
e0a4c5b6a8 attachment image insert fix 2018-09-27 11:51:03 +03:00
yuri
219a77f121 manual marge 2018-09-26 16:17:01 +03:00
yuri
43c0299c25 Merge branch 'master' of ssh://172.20.0.1/var/git/espo/backend 2018-09-26 16:13:43 +03:00
yuri
7b65cba5e4 stream image link inserting 2018-09-26 16:12:03 +03:00
yuri
0e3b3c4193 email address lookup fix 2018-09-26 11:21:39 +03:00
Taras Machyshyn
35bbe00e17 Minor changes for a system requirements 2018-09-25 14:50:35 +03:00
yuri
673c18a5ce system config params 2018-09-25 13:31:18 +03:00
Taras Machyshyn
dc32b278f9 Added system-requirements 2018-09-25 13:07:15 +03:00
yuri
58c767c0a6 Merge branch 'hotfix/5.4.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.4.4 2018-09-25 12:55:29 +03:00
yuri
7678316b5a fix call 2018-09-25 12:48:49 +03:00
yuri
988622629a call load phone numbers after update 2018-09-25 12:46:57 +03:00
yuri
c090b4629b showing phone numbers on call detail view 2018-09-25 12:42:05 +03:00
yuri
a9a3759d6e Merge branch 'hotfix/5.4.4' 2018-09-25 12:11:31 +03:00
yuri
19b4e91e25 lt_LT lang 2018-09-25 10:56:11 +03:00
yuri
f0d98542e4 cleanup 2018-09-25 10:52:00 +03:00
yuri
a32ed9c8f2 manual merge 2018-09-25 10:49:24 +03:00
yuri
67635f0b20 Merge branch 'hotfix/5.4.4' of github.com:espocrm/espocrm into hotfix/5.4.4 2018-09-25 10:44:17 +03:00
yuri
5d90b4f070 multi-enum w/o option list 2018-09-25 10:43:47 +03:00
yuri
c212eb1f20 array search by not defined options 2018-09-25 10:39:57 +03:00
Taras Machyshyn
5ae0b5a3f2 Case insensitive for LDAP 2018-09-24 16:01:12 +03:00
Xiaolu Hong
06d907d633 update zh_CN (#1054) 2018-09-24 14:26:56 +03:00
Xiaolu Hong
737c5ff2ba update zh_CN (#1052) 2018-09-24 11:03:49 +03:00
yuri
ba19934c06 selectize filter height 2018-09-21 17:01:41 +03:00
yuri
8885bb87be account role 100 2018-09-21 13:29:17 +03:00
yuri
690c873291 account role length 2018-09-21 13:22:11 +03:00
Taras Machyshyn
158cdd27bc LDAP Auth for portal users 2018-09-21 12:35:33 +03:00
yuri
51286a2c46 user access info and password change request templates 2018-09-20 13:18:46 +03:00
yuri
16538077ee Merge branch 'hotfix/5.4.4' 2018-09-20 11:28:29 +03:00
yuri
3181e54aa6 lead capture send Access-Control-Allow-Origin on posting 2018-09-19 14:52:56 +03:00
yuri
8028a153af fix max portal user count 2018-09-19 14:27:25 +03:00
yuri
0a03750d26 Merge branch 'hotfix/5.4.4' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.4.4 2018-09-19 14:23:31 +03:00
yuri
e9b1a91180 massUpdate is portal user disabled 2018-09-19 14:23:25 +03:00
Taras Machyshyn
8677dd48ad Bug fixes for portal user limit 2018-09-19 14:18:52 +03:00
yuri
c3d309d07e lead capture config leadCaptureAllowOrigin 2018-09-19 13:32:27 +03:00
yuri
63e78a8895 invitations use template file manager 2018-09-19 11:08:58 +03:00
yuri
4b54a962b2 cleanup relationships 2018-09-18 17:00:32 +03:00
yuri
f3d2f0b453 cleanup deleted fix 2018-09-18 16:39:04 +03:00
yuri
fe638db414 orm mid key name fix 2018-09-18 16:37:16 +03:00
yuri
e51be3fd85 lead capture options 2018-09-18 12:49:47 +03:00
yuri
4fd345cb88 Merge branch 'hotfix/5.4.4' of github.com:espocrm/espocrm into hotfix/5.4.4 2018-09-17 12:29:23 +03:00
yuri
41e2de18aa email template disable quick create 2018-09-17 12:29:13 +03:00
yuri
df567a0603 email template placeholder list translation 2018-09-17 12:26:53 +03:00
Yuri Kuznetsov
419fb93a91 Update README.md 2018-09-14 16:48:06 +03:00
yuri
c7473be8c7 readme update 2018-09-14 16:01:21 +03:00
yuri
311a01ef41 lead capture php 5.6 compatibility 2018-09-14 14:02:16 +03:00
yuri
1a163907a3 version 2018-09-14 13:43:17 +03:00
yuri
2acdc00547 fix admin panel iframe height 2018-09-14 13:37:13 +03:00
yuri
b622d8865c fix merge 2018-09-14 13:00:03 +03:00
yuri
786fcfb580 fix email assignment permissin 2018-09-13 16:32:34 +03:00
yuri
eec8512f96 fix import 2018-09-13 14:09:19 +03:00
yuri
be62caef2b fix wysiwyg xss 2018-09-13 14:03:01 +03:00
yuri
eabd52b186 fix xss in global search 2018-09-13 13:44:25 +03:00
yuri
101087680b version 2018-09-12 15:33:04 +03:00
yuri
372f1770e0 kanban move over 2018-09-12 13:07:56 +03:00
yuri
a44dcdc9ff disable kanban dragging on touch devices 2018-09-11 15:57:04 +03:00
yuri
d44b172602 tooltip 2018-09-11 15:06:42 +03:00
yuri
241d7610ba email listen to isRepied 2018-09-11 12:16:42 +03:00
yuri
6929b2d717 mass update skipStreamNotesAcl 2018-09-10 15:24:42 +03:00
yuri
e743f61913 version 2018-09-10 12:17:15 +03:00
yuri
7f4e5dd01a note acl populate script 2018-09-10 12:15:42 +03:00
yuri
8a1b58cf7c fix kanban css 2018-09-10 11:22:22 +03:00
yuri
2a20766912 fix UniquId 2018-09-10 10:29:34 +03:00
yuri
b49679eb90 fix notification id 2018-09-10 10:27:09 +03:00
yuri
b2ea073c16 fix notifications 2018-09-10 10:24:09 +03:00
yuri
54085a59c3 fix meeting acl 2018-09-07 14:38:02 +03:00
yuri
858658768d version 2018-09-07 14:21:18 +03:00
yuri
86421010b9 fix meeting/call select manager 2018-09-07 14:20:01 +03:00
yuri
8675db36f3 stream sql optimization 2018-09-07 11:02:49 +03:00
yuri
f36a98a824 lead capture payload see more disabled 2018-09-06 15:21:45 +03:00
yuri
3c71ff05f3 css fix 2018-09-05 12:53:51 +03:00
yuri
6039939308 css fix 2018-09-05 12:19:06 +03:00
yuri
1ddea9938b fix stream list 2018-09-04 16:56:09 +03:00
yuri
5d3b515ef1 cleanup 2018-09-04 12:08:56 +03:00
yuri
31b7db4033 fix sales pipeline 2018-09-04 12:06:51 +03:00
yuri
6a7d59ba20 sales pipilent labels 2018-09-04 11:55:03 +03:00
yuri
0ab0e46d67 css cleanup 2018-09-03 15:55:21 +03:00
yuri
2777fe49d9 strem note acl fix 2018-09-03 15:17:29 +03:00
yuri
1e246e8197 fix stream acl 2018-09-03 14:41:12 +03:00
yuri
d8eec1068d fix tpl 2018-09-03 14:07:08 +03:00
yuri
0021e16962 stream acl 2018-09-03 13:39:32 +03:00
yuri
b046da1d79 fix css 2018-08-31 16:29:00 +03:00
yuri
2ca8f3af6f fix icon 2018-08-31 15:30:47 +03:00
yuri
b180ac2314 lang fix 2018-08-31 15:14:16 +03:00
yuri
9cc646e3b8 ua lang 2018-08-31 15:07:06 +03:00
yuri
a2fee68732 icon change 2018-08-31 14:24:17 +03:00
yuri
dc0d150000 de lang 2018-08-31 12:58:13 +03:00
yuri
76cc4a8d2c icons change 2018-08-31 12:55:07 +03:00
yuri
6e4c097dee fix image preview 2018-08-30 16:55:26 +03:00
yuri
af398cb5d4 css fix 2018-08-30 15:52:34 +03:00
yuri
3865bba926 css fix 2018-08-30 15:49:40 +03:00
yuri
3ad39d3337 icon change 2018-08-30 15:30:16 +03:00
yuri
1dfe1eb9bf image preview do not resize 2018-08-30 15:15:33 +03:00
yuri
7885a9cac3 fix reminder after save 2018-08-30 14:53:28 +03:00
yuri
bb63751332 entity set as being saved 2018-08-30 14:30:17 +03:00
yuri
083770f705 icon fixes 2018-08-30 12:55:16 +03:00
yuri
a65862325f follow icon change 2018-08-30 12:13:42 +03:00
yuri
9465ca46b2 css fix 2018-08-30 11:50:15 +03:00
yuri
62f05f370f navbar item titles 2018-08-30 11:44:50 +03:00
yuri
8e408d93cb css fix 2018-08-30 11:39:40 +03:00
yuri
7c1d587ae0 search by opted out and bool where redefinition in ORM 2018-08-30 11:30:33 +03:00
yuri
cb42bfe8e7 fix typo 2018-08-30 11:10:30 +03:00
yuri
32a340afe0 icons 2018-08-29 16:39:04 +03:00
yuri
0ff8246a00 font awesome 2018-08-29 16:35:50 +03:00
yuri
c9c58d373a update bootstrap to 3.3.7 2018-08-28 16:49:02 +03:00
yuri
af7aea720b css fixes 2018-08-28 16:15:07 +03:00
yuri
dee488a9de fix lang 2018-08-28 15:06:04 +03:00
yuri
88ec71400a config params 2018-08-28 13:27:30 +03:00
yuri
10ad5a804a note edit delete period 2018-08-28 13:24:26 +03:00
yuri
45f948d96c Merge branch 'hotfix/5.3.7' of ssh://172.20.0.1/var/git/espo/backend 2018-08-27 14:39:54 +03:00
yuri
e5e6a32ce5 email: use mailto if no access to create email 2018-08-27 10:41:09 +03:00
yuri
cf5202a065 calendar: apply acl 2018-08-27 10:32:40 +03:00
yuri
f37a49ddaf fix typo 2018-08-27 10:23:15 +03:00
yuri
4858f964c8 case and target list dynamic logic 2018-08-23 15:27:02 +03:00
yuri
5b50215242 fix json format 2018-08-23 15:25:46 +03:00
yuri
461e356419 lead capture test 2018-08-23 15:08:31 +03:00
yuri
7146f3d3aa fix lead capture 2018-08-23 15:08:24 +03:00
yuri
43d289bc56 es_MX lang 2018-08-23 14:22:48 +03:00
yuri
65c843b581 fix lang 2018-08-23 14:06:23 +03:00
Taras Machyshyn
d08704c95c Warning fixes 2018-08-23 13:00:11 +03:00
yuri
fb9100efdc maintenanceMode param 2018-08-23 12:41:03 +03:00
yuri
ee2182638a service unavalable exception 2018-08-23 12:32:30 +03:00
yuri
8ba9fb4693 cronDisabled param 2018-08-23 12:32:16 +03:00
yuri
b427d8cade fix date time optional fetch 2018-08-23 12:07:21 +03:00
yuri
89de19fd2e css 2018-08-22 12:23:35 +03:00
yuri
2f4df63281 foreign bool 2018-08-21 14:52:37 +03:00
yuri
e12eade143 fix template form 2018-08-21 12:05:59 +03:00
yuri
15b0d147d9 fix attachment 2018-08-21 11:48:41 +03:00
yuri
4901b8c5a0 template fonts labels 2018-08-20 16:30:21 +03:00
yuri
8c4f3b1103 template: ability to pick font 2018-08-20 16:16:10 +03:00
yuri
2225906eac fix kanban 2018-08-20 15:40:17 +03:00
yuri
895b3aa7c9 lang 2018-08-20 12:34:03 +03:00
yuri
67b359ff18 kanban css fix 2018-08-20 12:27:34 +03:00
yuri
62200d393e fix css formatting 2018-08-20 10:50:51 +03:00
yuri
166522e4e6 layout fixes 2018-08-20 10:38:42 +03:00
yuri
cc3d7a9f20 css grid-auto-fill 2018-08-17 16:19:56 +03:00
yuri
81ce479293 Merge branch 'hotfix/5.3.7' 2018-08-17 14:57:16 +03:00
yuri
afa6591903 dashboard fix 2018-08-17 14:48:48 +03:00
yuri
e89cb2547e preferences: ability to reset dashboard to default 2018-08-17 14:20:24 +03:00
yuri
7b982acc3e fix button helper 2018-08-17 12:42:35 +03:00
yuri
e24fc19314 preferences layout change 2018-08-17 12:11:57 +03:00
yuri
0d9473b1e9 version 2018-08-17 12:00:28 +03:00
yuri
db4ccbe590 clean up deleted records 2018-08-17 11:39:58 +03:00
yuri
f085d2140c fix strip url 2018-08-16 16:47:16 +03:00
yuri
4f2117453d lang 2018-08-16 15:49:21 +03:00
yuri
919fff6cd5 activities compose email change 2018-08-16 12:59:42 +03:00
yuri
b77f0a705e css fix 2018-08-16 12:04:22 +03:00
yuri
73699894be update window title after save 2018-08-16 11:50:39 +03:00
yuri
4282d1766b fix flotr2 with touch enabled 2018-08-16 11:43:05 +03:00
yuri
3ebb9ea8fc import acl check edit 2018-08-15 16:18:55 +03:00
yuri
5635fddf3d import for regular users 2018-08-15 15:59:46 +03:00
yuri
9501e116cb app error log 2018-08-15 15:45:19 +03:00
yuri
c0997f1d97 fix remove fail 2018-08-15 15:15:22 +03:00
yuri
106961ff03 import fix 2018-08-15 13:56:42 +03:00
yuri
fd2b9cc818 import acl 2018-08-15 13:52:35 +03:00
yuri
d90853ff73 fix lead capture 2018-08-15 13:51:52 +03:00
yuri
a8bcd1dc2f import naming fixes 2018-08-15 13:26:31 +03:00
yuri
1f4ae0f07c date list title 2018-08-15 12:54:30 +03:00
yuri
cf0a9fd808 attachments fixes 2018-08-15 12:47:41 +03:00
yuri
036e10cbf7 fix test 2018-08-15 12:21:48 +03:00
yuri
0a22510566 orm fixes 2018-08-15 12:02:20 +03:00
yuri
44f14c1d29 amount weighted filter 2018-08-15 11:21:10 +03:00
yuri
e6796390db fix login logo 2018-08-14 17:29:15 +03:00
yuri
c11d52cef6 css fix 2018-08-14 16:35:37 +03:00
yuri
33e8b8b0c1 fix email phone add button 2018-08-14 15:35:18 +03:00
yuri
04dbe9129a Merge branch 'hotfix/5.3.7' 2018-08-14 15:22:09 +03:00
yuri
8e1a4ba368 IRR currency 2018-08-14 15:19:41 +03:00
yuri
920b5244a8 attachment filter fix 2018-08-14 14:53:17 +03:00
yuri
cd57f6c600 fix color icon linebreak issue 2018-08-14 14:29:09 +03:00
yuri
7e6a32ab06 attachmets list view 2018-08-14 13:36:04 +03:00
yuri
ee0dc257b2 lang 2018-08-14 11:58:37 +03:00
yuri
a8e6421517 cleanup attachments 15 days 2018-08-14 11:17:17 +03:00
yuri
1c5d2bd756 cleanup attachment limit 5000 2018-08-14 11:14:48 +03:00
yuri
1fc59b28aa Merge branch 'hotfix/5.3.7' 2018-08-14 11:09:31 +03:00
yuri
ed603c5f98 email template skip acl 2018-08-14 10:40:13 +03:00
yuri
0b7743419e array value cleanup 2018-08-14 10:25:10 +03:00
yuri
81ff01e9be array value 2018-08-13 15:43:44 +03:00
yuri
4845622949 fix iframe scroll on mobile 2018-08-13 14:48:18 +03:00
yuri
122cd9c56d orm: join table, join conditions, where not value conditions 2018-08-13 12:46:34 +03:00
yuri
379562b0d7 code style fix 2018-08-10 16:45:54 +03:00
yuri
c72d6d928a Merge branch 'hotfix/5.3.7' 2018-08-10 16:08:12 +03:00
yuri
b09c1366e3 fix email folder select manager 2018-08-10 15:11:56 +03:00
yuri
00e0427fdd options max length 2018-08-10 14:52:05 +03:00
yuri
85f888d60b relatin name max length 2018-08-10 14:46:28 +03:00
yuri
f22856dd91 field max length 100 2018-08-10 14:43:31 +03:00
yuri
5673d253e4 entity manager name maxlength 2018-08-10 14:41:37 +03:00
yuri
27ce836d4a currency entity class 2018-08-10 14:33:51 +03:00
yuri
a490ded36a fix field view fetch 2018-08-10 14:33:10 +03:00
yuri
bd54195403 Merge branch 'hotfix/5.3.7' 2018-08-10 11:08:59 +03:00
yuri
21d8e291e4 array field search type 2018-08-09 16:25:58 +03:00
yuri
b4fa62b403 parentName in assignment notification 2018-08-09 13:11:58 +03:00
yuri
1f3d7063d2 fix lead capture 2018-08-09 11:58:27 +03:00
yuri
e5709571e4 Merge branch 'hotfix/5.3.7' 2018-08-09 11:50:11 +03:00
yuri
a80d847f44 meeting duration list view 2018-08-09 11:38:40 +03:00
yuri
9de7105cde date field list link 2018-08-09 11:33:25 +03:00
yuri
cd7cc188e1 valueIsSet fields 2018-08-09 11:15:02 +03:00
yuri
e68a5f1979 fix phone number ui 2018-08-09 11:01:27 +03:00
yuri
c3e16a896e css fix 2018-08-08 14:52:48 +03:00
yuri
eafd0c3840 hide followers if empty 2018-08-08 13:18:16 +03:00
yuri
d5b5bb31c7 css fix 2018-08-08 13:03:00 +03:00
yuri
eaab96732a version 2018-08-08 12:52:30 +03:00
yuri
0dfed7279e css fix 2018-08-08 12:52:08 +03:00
yuri
b0e973d8ba fix multi enum 2018-08-08 12:07:37 +03:00
yuri
1d809c10b0 css fix 2018-08-08 11:33:01 +03:00
yuri
e0279f403f update font awesome icons 2018-08-08 11:16:48 +03:00
yuri
fa75da658c css fix 2018-08-08 10:57:13 +03:00
yuri
d23689aab7 cleanup 2018-08-08 10:35:32 +03:00
yuri
d4cc305265 fix account tasks panel 2018-08-08 10:34:22 +03:00
yuri
695d4b0cda lead capture job rename 2018-08-07 15:57:08 +03:00
yuri
2107d93cd2 phone number numeric 2018-08-07 15:55:06 +03:00
yuri
fb256ca29f orm noSelect param 2018-08-07 15:17:14 +03:00
yuri
557bcb4ecd lead capture 2018-08-07 13:18:43 +03:00
yuri
50a272473b fix formula modal 2018-08-06 12:31:11 +03:00
yuri
0eb9544371 jquery ui sortable on touch screens 2018-08-06 10:51:05 +03:00
yuri
620fa607d4 css fix 2018-08-06 10:39:40 +03:00
yuri
304d216b0e move to folder max size 2018-08-06 10:30:04 +03:00
yuri
ce2fe9d50c Merge branch 'stable' 2018-08-03 14:15:01 +03:00
yuri
eadf7835db fix css 2018-08-03 13:16:22 +03:00
yuri
048f65c8f6 record view ref 2018-08-03 11:57:35 +03:00
yuri
c30c4163a6 increase container max size 2018-08-02 16:21:40 +03:00
yuri
8d6db72516 icons fix 2018-08-02 15:08:32 +03:00
yuri
71864056bc navbar panel height 2018-08-02 15:05:00 +03:00
yuri
e375105a5f Merge branch 'hotfix/5.3.6' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.6 2018-08-02 13:28:18 +03:00
Taras Machyshyn
e066f4c6b0 Merge branch 'hotfix/5.3.6' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.6 2018-08-02 13:27:08 +03:00
Taras Machyshyn
b032aa4d8d Upgrades bug fixes 2018-08-02 13:26:46 +03:00
yuri
342a18e0ac fix installer css 2018-08-02 12:59:12 +03:00
yuri
e27e9de701 attachment preview resize 2018-08-02 12:37:16 +03:00
yuri
b14b199d43 preview resize fix 2018-08-02 12:28:14 +03:00
yuri
f77a7c32d5 link multiple preview size param 2018-08-02 12:04:33 +03:00
yuri
9f84d3f233 notifications attachment preview small size 2018-08-02 11:56:00 +03:00
yuri
be82244c6b showing attachments in notifications 2018-08-02 11:30:28 +03:00
yuri
7fed72d391 fix image sized download extension 2018-08-02 10:55:39 +03:00
yuri
54d615b64d fix attachment preview in list 2018-08-02 10:46:16 +03:00
yuri
2dbbd1e23d Merge branch 'hotfix/5.3.6' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.6 2018-08-02 10:30:55 +03:00
Taras Machyshyn
cba8867389 Bug fixes for MySQL 8 2018-08-01 18:49:40 +03:00
yuri
32d47db15a emailFolderMaxCount 2018-08-01 11:16:50 +03:00
yuri
2c65c9ff9f modal select attributes 2018-08-01 11:13:00 +03:00
yuri
fa5d63253b naming fix 2018-08-01 10:46:48 +03:00
yuri
b7ae252d3d modal forceSelectAllAttributes 2018-08-01 10:24:41 +03:00
yuri
f07b43abda version 2018-07-30 16:05:13 +03:00
yuri
276db37baf required extensions change 2018-07-30 16:03:20 +03:00
yuri
6adad84a29 installer config formatting 2018-07-30 15:52:16 +03:00
yuri
f137298c49 add exif extension 2018-07-30 15:50:17 +03:00
yuri
f8839518d5 avatar check exif read data exists 2018-07-30 15:48:00 +03:00
yuri
1ae39d1a40 fix campaign revenue empty 2018-07-30 10:20:45 +03:00
yuri
94f920324e fix case compose email 2018-07-30 10:14:17 +03:00
yuri
dbc3f7c7d6 Merge branch 'hotfix/5.3.5' 2018-07-27 12:35:42 +03:00
yuri
94c00e2901 orm: revert forcing updating json object 2018-07-27 11:59:22 +03:00
yuri
7de988104b link multiple attachment multiple list view fixes 2018-07-27 11:55:19 +03:00
yuri
03bc90968c fix email sending 2 2018-07-27 11:32:29 +03:00
yuri
a5401a22b9 fix email sending 2018-07-27 11:13:49 +03:00
yuri
4c1375d8b2 user buttons links 2018-07-27 10:46:18 +03:00
yuri
bab4a3b0d6 fix full text 2018-07-27 10:40:48 +03:00
yuri
33e135f227 fix email fetching 2018-07-27 10:03:26 +03:00
yuri
56b9d8d5c1 fix campaign 2018-07-26 17:56:35 +03:00
yuri
38ec88e302 fix formatting 2018-07-26 17:02:31 +03:00
yuri
10be208d8d fix linkedWith filter 2018-07-26 12:26:25 +03:00
yuri
38d227a948 fix model sync 2018-07-26 10:55:55 +03:00
yuri
1a8e4435e2 use put istead of patch 2018-07-25 15:04:33 +03:00
yuri
12febbdff5 version 2018-07-25 12:44:45 +03:00
yuri
ebea168350 field ui fixes 2018-07-25 12:41:48 +03:00
yuri
704519f80b fix setFetched link multiple and link one 2018-07-25 11:38:48 +03:00
yuri
5f1000ddd3 fix audited 2018-07-25 11:04:17 +03:00
yuri
2ee7e6cf4a orm: isUnordered param 2018-07-25 10:57:53 +03:00
yuri
2989975829 audited fix 2018-07-25 10:41:39 +03:00
yuri
a4c068427d cleanup 2018-07-24 18:22:54 +03:00
yuri
e1a76b9924 orm: isAttributeChanged improvement 2018-07-24 18:22:04 +03:00
yuri
1f2efcd716 link multiple available in list fix 2018-07-23 12:59:04 +03:00
yuri
576dfe068f fix array field setOptionList 2018-07-20 15:51:21 +03:00
yuri
f76860cdfd Merge branch 'stable' 2018-07-19 17:01:24 +03:00
yuri
56f8e68599 fix wysiwyg width 2018-07-19 14:56:28 +03:00
yuri
e8d75808ef fix email scrolling 2018-07-19 14:43:35 +03:00
yuri
bc8bf89d6e css fixes 2018-07-19 12:14:06 +03:00
yuri
91385cc3f0 fix naming 2018-07-19 11:49:43 +03:00
yuri
ad21511c72 email list is replied fix 2018-07-19 11:44:40 +03:00
yuri
938a24f102 fix assignment email notificaiotion 2018-07-19 10:59:32 +03:00
yuri
43b041ed6c fix replied icon 2018-07-18 15:37:37 +03:00
yuri
5e3f048795 replied email icon 2018-07-18 14:57:12 +03:00
yuri
3aec3ef6d2 formula higher 2018-07-18 11:37:55 +03:00
yuri
712a450734 formula mb string functions 2018-07-18 11:35:31 +03:00
yuri
5675b6721b sort by list comma fix 2018-07-18 11:25:58 +03:00
yuri
a4e23b8adb formula parser fix 2018-07-18 10:29:06 +03:00
yuri
9d49f418c8 orm fix order list 2018-07-18 10:11:36 +03:00
yuri
ea9f70dffa global search ability to select text 2018-07-17 17:26:06 +03:00
yuri
b624accbe8 version 2018-07-17 17:07:50 +03:00
yuri
12f974635e global search fixes 2018-07-17 17:07:32 +03:00
yuri
cfce68eb7e default panel complex fields 2018-07-17 15:38:44 +03:00
yuri
db8fbd1ed3 hide default panel if empty 2018-07-17 14:39:54 +03:00
yuri
7c549556ac Merge branch 'hotfix/5.3.3' 2018-07-17 11:15:22 +03:00
yuri
06395f3ff5 Merge branch 'hotfix/5.3.3' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.3 2018-07-16 15:48:49 +03:00
Taras Machyshyn
4065ec5477 Test fixes 2018-07-16 15:48:25 +03:00
yuri
31d45a0583 Merge branch 'hotfix/5.3.3' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.3 2018-07-16 14:20:29 +03:00
yuri
696faa4468 fix wysiwyg toolbar 2018-07-16 14:20:19 +03:00
Taras Machyshyn
625876f123 Merge branch 'hotfix/5.3.3' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.3 2018-07-16 14:06:54 +03:00
Taras Machyshyn
974cd05276 Integration test for fulltext index 2018-07-16 14:06:37 +03:00
yuri
fb5db991a3 fix vars 2018-07-16 13:37:00 +03:00
yuri
3dafb7e922 fix categories 2018-07-16 13:12:09 +03:00
yuri
ee640273a1 fix stream attachments 2018-07-16 10:51:55 +03:00
yuri
b92de17f72 Merge branch 'hotfix/5.3.3' of ssh://172.20.0.1/var/git/espo/backend into hotfix/5.3.3 2018-07-13 16:55:22 +03:00
Taras Machyshyn
abc48ca76f Fulltext bug fixes 2018-07-13 16:52:02 +03:00
yuri
46443aae7e fix full text search 2018-07-13 16:37:32 +03:00
yuri
a88c3283d6 full text search fix 2018-07-13 16:33:19 +03:00
yuri
2b9653ee0b replace tabs 2018-07-13 14:53:37 +03:00
yuri
2cf79abdb1 fix list view remove 2018-07-13 14:49:56 +03:00
yuri
20a000a46c fix full text search 2018-07-13 12:33:21 +03:00
ayman-alkom
95bfd5bace fix typo (#968) 2018-07-13 11:51:34 +03:00
ayman-alkom
a6b5f38aed fix typo (#968) 2018-07-13 11:49:44 +03:00
yuri
da736008f1 version 2018-07-13 11:19:49 +03:00
yuri
1de98d9616 text filter fixes 2018-07-13 11:19:30 +03:00
yuri
31a6143cc3 email template text filter 2018-07-13 11:07:34 +03:00
yuri
8502a84a3f chart mousetick fix 2018-07-12 12:52:05 +03:00
yuri
2234678728 email search tests 2018-07-12 11:31:44 +03:00
3124 changed files with 73619 additions and 24324 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@
/data/config.php
/build
/node_modules
npm-debug.log
/test.php
/main.html

View File

@@ -9,7 +9,7 @@ DirectoryIndex index.php index.html
# PROTECTED DIRECTORIES
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^/?(data|api)/ - [F]
RewriteRule ^/?(data|api|client)/ - [F]
RewriteRule ^/?data/config\.php$ - [F]
RewriteRule ^/?data/logs/ - [F]
@@ -19,6 +19,7 @@ DirectoryIndex index.php index.html
RewriteRule ^/?application/ - [F]
RewriteRule ^/?custom/ - [F]
RewriteRule ^/?vendor/ - [F]
RewriteRule ^/?client/?$ - [F]
#END PROTECTED DIRECTORIES
RewriteRule .* - [E=HTTP_ESPO_CGI_AUTH:%{HTTP:Authorization}]

View File

@@ -2,8 +2,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -28,14 +28,17 @@ module.exports = function (grunt) {
'client/lib/handlebars.js',
'client/lib/base64.js',
'client/lib/jquery-ui.min.js',
'client/lib/jquery.ui.touch-punch.min.js',
'client/lib/moment.min.js',
'client/lib/moment-timezone-with-data.min.js',
'client/lib/moment-timezone.min.js',
'client/lib/moment-timezone-data.js',
'client/lib/jquery.timepicker.min.js',
'client/lib/jquery.autocomplete.js',
'client/lib/bootstrap.min.js',
'client/lib/bootstrap-datepicker.js',
'client/lib/bull.js',
'client/lib/marked.min.js',
'client/lib/autobahn.js',
'client/src/namespace.js',
'client/src/exceptions.js',
@@ -86,12 +89,16 @@ module.exports = function (grunt) {
themeList.push(file.substr(0, file.length - 5));
});
var cssminFilesData = {};
var lessData = {};
themeList.forEach(function (theme) {
var name = camelCaseToHyphen(theme);
var files = {};
files['client/css/espo/'+name+'.css'] = 'frontend/less/'+name+'/main.less';
files['client/css/espo/'+name+'-iframe.css'] = 'frontend/less/'+name+'/iframe/main.less';
cssminFilesData['client/css/espo/'+name+'.css'] = 'client/css/espo/'+name+'.css';
cssminFilesData['client/css/espo/'+name+'-iframe.css'] = 'client/css/espo/'+name+'-iframe.css';
var o = {
options: {
yuicompress: true,
@@ -116,16 +123,22 @@ module.exports = function (grunt) {
}
},
clean: {
start: ['build/*'],
start: ['build/EspoCRM-*'],
final: ['build/tmp'],
beforeFinal: {
src: ['build/tmp/custom/Espo/Custom/*', '!build/tmp/custom/Espo/Custom/.htaccess']
}
},
less: lessData,
cssmin: {
themes: {
files: cssminFilesData
}
},
uglify: {
options: {
mangle: false,
sourceMap: true,
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
},
'build/tmp/client/espo.min.js': jsFilesToMinify.map(function (item) {
@@ -170,10 +183,13 @@ module.exports = function (grunt) {
'html/**',
'bootstrap.php',
'cron.php',
'daemon.php',
'rebuild.php',
'clear_cache.php',
'upgrade.php',
'extension.php',
'websocket.php',
'command.php',
'index.php',
'LICENSE.txt',
'.htaccess',
@@ -224,26 +240,6 @@ module.exports = function (grunt) {
}
},
replace: {
timestamp: {
options: {
patterns: [
{
match: 'timestamp',
replacement: '<%= new Date().getTime() %>'
}
]
},
files: [
{
src: 'build/tmp/html/main.html',
dest: 'build/tmp/html/main.html'
},
{
src: 'build/tmp/html/portal.html',
dest: 'build/tmp/html/portal.html'
}
]
},
version: {
options: {
patterns: [
@@ -288,6 +284,7 @@ module.exports = function (grunt) {
'clean:start',
'mkdir:tmp',
'less',
'cssmin',
'uglify',
'copy:frontendFolders',
'copy:frontendLib',
@@ -298,5 +295,4 @@ module.exports = function (grunt) {
'chmod',
'clean:final'
]);
};

View File

@@ -8,8 +8,8 @@ Download the latest release from our [website](http://www.espocrm.com).
### Requirements
* PHP 5.6 or above (with pdo, json, gd, openssl, zip, imap, mbstring, curl extensions);
* MySQL 5.5.3 or above.
* PHP 7.1 or above (with pdo, json, gd, openssl, zip, imap, mbstring, curl extensions);
* MySQL 5.5.3 or above, or MariaDB.
For more information about server configuration see [this article](https://www.espocrm.com/documentation/administration/server-configuration/).
@@ -17,10 +17,14 @@ For more information about server configuration see [this article](https://www.e
Documentation for administrators, users and developers is available [here](https://www.espocrm.com/documentation/).
### How to report bug
### How to report a bug
Create an issue [here](https://github.com/espocrm/espocrm/issues) or post on our [forum](http://forum.espocrm.com/forum/bug-reports).
### How to install a stable version
[Download](https://www.espocrm.com/download/) the latest version. See the [instructions](https://www.espocrm.com/documentation/administration/installation/) about installation.
### How to get started (for developers)
1. Clone repository to your local computer.
@@ -34,7 +38,7 @@ Now you can build. Build will create compiled css files.
To compose a proper config.php and populate database you can run install by opening `http(s)://{YOUR_CRM_URL}/install` location in a browser. Then open `data/config.php` file and add `isDeveloperMode => true`.
### How to build
### How to build (for developers)
You need to have nodejs and Grunt CLI installed.
@@ -48,6 +52,12 @@ The build will be created in the `build` directory.
Before we can merge your pull request you need to accept our CLA [here](https://github.com/espocrm/cla). It's very simple to do.
Branches:
* hotfix/* upcoming maintenance release; fixes should be pushed to this branch;
* master develop branch; new features should be pushed to this branch;
* stable last stable release.
### How to make a translation
Build po file with command:
@@ -66,4 +76,3 @@ Json files will be created in build directory grouped by folders.
### License
EspoCRM is published under the GNU GPLv3 [license](https://raw.githubusercontent.com/espocrm/espocrm/master/LICENSE.txt).

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -34,6 +34,7 @@ use \Espo\ORM\Entity;
class Email extends \Espo\Core\Acl\Base
{
protected $ownerUserIdAttribute = 'usersIds';
public function checkEntityRead(EntityUser $user, Entity $entity, $data)
{
@@ -118,4 +119,3 @@ class Email extends \Espo\Core\Acl\Base
return false;
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -48,7 +48,9 @@ class EmailAddress extends \Espo\Core\Acl\Base
if (!$this->getAclManager()->check($user, $e, 'edit')) {
$isFobidden = true;
if (
$e->get('isPortalUser') && $excludeEntity->getEntityType() === 'Contact' &&
$e->getEntityType() === 'User' &&
$e->isPortal() &&
$excludeEntity->getEntityType() === 'Contact' &&
$e->get('contactId') === $excludeEntity->id
) {
$isFobidden = false;

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -0,0 +1,53 @@
<?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\Acl;
use \Espo\Entities\User as EntityUser;
use \Espo\ORM\Entity;
class Import extends \Espo\Core\Acl\Base
{
public function checkEntityRead(EntityUser $user, Entity $entity, $data)
{
if ($user->isAdmin()) return true;
if ($user->id === $entity->get('createdById')) return true;
return false;
}
public function checkEntityDelete(EntityUser $user, Entity $entity, $data)
{
if ($user->isAdmin()) return true;
if ($user->id === $entity->get('createdById')) return true;
return false;
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -34,6 +34,10 @@ use \Espo\ORM\Entity;
class Note extends \Espo\Core\Acl\Base
{
protected $deleteThresholdPeriod = '1 month';
protected $editThresholdPeriod = '7 days';
public function checkIsOwner(EntityUser $user, Entity $entity)
{
if ($entity->get('type') === 'Post' && $user->id === $entity->get('createdById')) {
@@ -41,5 +45,60 @@ class Note extends \Espo\Core\Acl\Base
}
return false;
}
}
public function checkEntityEdit(EntityUser $user, Entity $entity, $data)
{
if ($user->isAdmin()) {
return true;
}
if ($this->checkEntity($user, $entity, $data, 'edit')) {
if ($this->checkIsOwner($user, $entity)) {
$createdAt = $entity->get('createdAt');
if ($createdAt) {
$noteEditThresholdPeriod = '-' . $this->getConfig()->get('noteEditThresholdPeriod', $this->editThresholdPeriod);
$dt = new \DateTime();
$dt->modify($noteEditThresholdPeriod);
try {
if ($dt->format('U') > (new \DateTime($createdAt))->format('U')) {
return false;
}
} catch (\Exception $e) {
return false;
}
}
}
return true;
}
return false;
}
public function checkEntityDelete(EntityUser $user, Entity $entity, $data)
{
if ($user->isAdmin()) {
return true;
}
if ($this->checkEntity($user, $entity, $data, 'delete')) {
if ($this->checkIsOwner($user, $entity)) {
$createdAt = $entity->get('createdAt');
if ($createdAt) {
$deleteThresholdPeriod = '-' . $this->getConfig()->get('noteDeleteThresholdPeriod', $this->deleteThresholdPeriod);
$dt = new \DateTime();
$dt->modify($deleteThresholdPeriod);
try {
if ($dt->format('U') > (new \DateTime($createdAt))->format('U')) {
return false;
}
} catch (\Exception $e) {
return false;
}
}
}
return true;
}
return false;
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -48,7 +48,9 @@ class PhoneNumber extends \Espo\Core\Acl\Base
if (!$this->getAclManager()->check($user, $e, 'edit')) {
$isFobidden = true;
if (
$e->get('isPortalUser') && $excludeEntity->getEntityType() === 'Contact' &&
$e->getEntityType() === 'User' &&
$e->isPortal() &&
$excludeEntity->getEntityType() === 'Contact' &&
$e->get('contactId') === $excludeEntity->id
) {
$isFobidden = false;

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -44,6 +44,9 @@ class User extends \Espo\Core\Acl\Base
if (!$user->isAdmin()) {
return false;
}
if ($entity->isSuperAdmin() && !$user->isSuperAdmin()) {
return false;
}
return $this->checkEntity($user, $entity, $data, 'create');
}
@@ -55,6 +58,12 @@ class User extends \Espo\Core\Acl\Base
if (!$user->isAdmin()) {
return false;
}
if ($entity->isSystem()) {
return false;
}
if ($entity->isSuperAdmin() && !$user->isSuperAdmin()) {
return false;
}
return parent::checkEntityDelete($user, $entity, $data);
}
@@ -63,11 +72,17 @@ class User extends \Espo\Core\Acl\Base
if ($entity->id === 'system') {
return false;
}
if ($entity->isSystem()) {
return false;
}
if (!$user->isAdmin()) {
if ($user->id !== $entity->id) {
return false;
}
}
if ($entity->isSuperAdmin() && !$user->isSuperAdmin()) {
return false;
}
return $this->checkEntity($user, $entity, $data, 'edit');
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -34,6 +34,7 @@ use \Espo\ORM\Entity;
class Email extends \Espo\Core\AclPortal\Base
{
protected $ownerUserIdAttribute = 'usersIds';
public function checkEntityRead(EntityUser $user, Entity $entity, $data)
{

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -33,39 +33,38 @@ use \Espo\Core\Exceptions\Forbidden;
class ActionHistoryRecord extends \Espo\Core\Controllers\Record
{
public function actionUpdate($params, $data, $request)
public function beforeUpdate()
{
throw new Forbidden();
}
public function actionCreate($params, $data, $request)
public function beforeCreate()
{
throw new Forbidden();
}
public function actionListLinked($params, $data, $request)
public function beforeListLinked()
{
throw new Forbidden();
}
public function actionMassUpdate($params, $data, $request)
public function beforeMassUpdate()
{
throw new Forbidden();
}
public function actionCreateLink($params, $data, $request)
public function beforeCreateLink()
{
throw new Forbidden();
}
public function actionRemoveLink($params, $data, $request)
public function beforeRemoveLink()
{
throw new Forbidden();
}
public function actionMassDelete($params, $data, $request)
public function beforeMassDelete()
{
throw new Forbidden();
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -69,7 +69,7 @@ class Admin extends \Espo\Core\Controllers\Base
public function postActionUploadUpgradePackage($params, $data)
{
if ($this->getConfig()->get('restrictedMode')) {
if (!$this->getUser()->get('isSuperAdmin')) {
if (!$this->getUser()->isSuperAdmin()) {
throw new Forbidden();
}
}
@@ -87,7 +87,7 @@ class Admin extends \Espo\Core\Controllers\Base
public function postActionRunUpgrade($params, $data)
{
if ($this->getConfig()->get('restrictedMode')) {
if (!$this->getUser()->get('isSuperAdmin')) {
if (!$this->getUser()->isSuperAdmin()) {
throw new Forbidden();
}
}
@@ -108,4 +108,10 @@ class Admin extends \Espo\Core\Controllers\Base
$adminNotificationManager = new \Espo\Core\Utils\AdminNotificationManager($this->getContainer());
return $adminNotificationManager->getNotificationList();
}
public function actionSystemRequirementList($params)
{
$systemRequirementManager = new \Espo\Core\Utils\SystemRequirements($this->getContainer());
return $systemRequirementManager->getAllRequiredList();
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -34,5 +34,27 @@ use \Espo\Core\Exceptions\BadRequest;
class Attachment extends \Espo\Core\Controllers\Record
{
public function actionList($params, $data, $request)
{
if (!$this->getUser()->isAdmin()) {
throw new Forbidden();
}
return parent::actionList($params, $data, $request);
}
public function postActionGetAttachmentFromImageUrl($params, $data)
{
if (empty($data->url)) throw new BadRequest();
if (empty($data->field)) throw new BadRequest('postActionGetAttachmentFromImageUrl: No field specified');
return $this->getRecordService()->getAttachmentFromImageUrl($data)->getValueMap();
}
public function postActionGetCopiedAttachment($params, $data)
{
if (empty($data->id)) throw new BadRequest();
if (empty($data->field)) throw new BadRequest('postActionGetCopiedAttachment copy: No field specified');
return $this->getRecordService()->getCopiedAttachment($data)->getValueMap();
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -40,27 +40,27 @@ class AuthLogRecord extends \Espo\Core\Controllers\Record
}
}
public function actionUpdate($params, $data, $request)
public function beforeUpdate()
{
throw new Forbidden();
}
public function actionMassUpdate($params, $data, $request)
public function beforeMassUpdate()
{
throw new Forbidden();
}
public function actionCreate($params, $data, $request)
public function beforeCreate()
{
throw new Forbidden();
}
public function actionCreateLink($params, $data, $request)
public function beforeCreateLink()
{
throw new Forbidden();
}
public function actionRemoveLink($params, $data, $request)
public function beforeRemoveLink()
{
throw new Forbidden();
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -80,17 +80,17 @@ class AuthToken extends \Espo\Core\Controllers\Record
throw new Forbidden();
}
public function actionCreate($params, $data, $request)
public function beforeCreate()
{
throw new Forbidden();
}
public function actionCreateLink($params, $data, $request)
public function beforeCreateLink()
{
throw new Forbidden();
}
public function actionRemoveLink($params, $data, $request)
public function beforeRemoveLink()
{
throw new Forbidden();
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -46,12 +46,8 @@ class Email extends \Espo\Core\Controllers\Record
return $this->getRecordService()->getCopiedAttachments($id);
}
public function actionSendTestEmail($params, $data, $request)
public function postActionSendTestEmail($params, $data, $request)
{
if (!$request->isPost()) {
throw new BadRequest();
}
if (!$this->getAcl()->checkScope('Email')) {
throw new Forbidden();
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -34,16 +34,18 @@ use \Espo\Core\Exceptions\BadRequest;
class EmailAccount extends \Espo\Core\Controllers\Record
{
public function actionGetFolders($params, $data, $request)
public function postActionGetFolders($params, $data)
{
return $this->getRecordService()->getFolders(array(
'host' => $request->get('host'),
'port' => $request->get('port'),
'ssl' => $request->get('ssl') === 'true',
'username' => $request->get('username'),
'password' => $request->get('password'),
'id' => $request->get('id')
));
return $this->getRecordService()->getFolders([
'host' => $data->host ?? null,
'port' => $data->port ?? null,
'ssl' => $data->ssl ?? false,
'username' => $data->username ?? null,
'password' => $data->password ?? null,
'id' => $data->id ?? null,
'emailAddress' => $data->emailAddress ?? null,
'userId' => $data->userId ?? null,
]);
}
protected function checkControllerAccess()
@@ -53,12 +55,8 @@ class EmailAccount extends \Espo\Core\Controllers\Record
}
}
public function actionTestConnection($params, $data, $request)
public function postActionTestConnection($params, $data, $request)
{
if (!$request->isPost()) {
throw new BadRequest();
}
if (is_null($data->password)) {
$emailAccount = $this->getEntityManager()->getEntity('EmailAccount', $data->id);
if (!$emailAccount || !$emailAccount->id) {
@@ -75,4 +73,3 @@ class EmailAccount extends \Espo\Core\Controllers\Record
return $this->getRecordService()->testConnection(get_object_vars($data));
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -42,11 +42,13 @@ class EmailAddress extends \Espo\Core\Controllers\Record
throw new Forbidden();
}
$q = $request->get('q');
$limit = intval($request->get('limit'));
if (empty($limit) || $limit > 30) {
$limit = 5;
$maxSize = intval($request->get('maxSize'));
if (empty($maxSize) || $maxSize > 50) {
$maxSize = $this->getConfig()->get('recordsPerPage', 20);
}
return $this->getRecordService()->searchInAddressBook($q, $limit);
$onlyActual = $request->get('onlyActual') === 'true';
return $this->getRecordService()->searchInAddressBook($q, $maxSize, $onlyActual);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -90,7 +90,7 @@ class EntityManager extends \Espo\Core\Controllers\Base
$params['iconClass'] = $data['iconClass'];
}
if (isset($data['fullTextSearch'])) {
$params['fullTestSearch'] = $data['fullTextSearch'];
$params['fullTextSearch'] = $data['fullTextSearch'];
}
$params['kanbanViewMode'] = !empty($data['kanbanViewMode']);
@@ -130,10 +130,6 @@ class EntityManager extends \Espo\Core\Controllers\Base
$name = $data['name'];
$name = filter_var($name, \FILTER_SANITIZE_STRING);
if (!empty($data['sortDirection'])) {
$data['asc'] = $data['sortDirection'] === 'asc';
}
$result = $this->getContainer()->get('entityManagerUtil')->update($name, $data);
if ($result) {

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -66,7 +66,7 @@ class Extension extends \Espo\Core\Controllers\Record
throw new Forbidden();
}
if ($this->getConfig()->get('restrictedMode')) {
if (!$this->getUser()->get('isSuperAdmin')) {
if (!$this->getUser()->isSuperAdmin()) {
throw new Forbidden();
}
}
@@ -84,7 +84,7 @@ class Extension extends \Espo\Core\Controllers\Record
throw new Forbidden();
}
if ($this->getConfig()->get('restrictedMode')) {
if (!$this->getUser()->get('isSuperAdmin')) {
if (!$this->getUser()->isSuperAdmin()) {
throw new Forbidden();
}
}
@@ -94,25 +94,6 @@ class Extension extends \Espo\Core\Controllers\Record
return true;
}
public function actionCreate($params, $data, $request)
{
throw new Forbidden();
}
public function actionUpdate($params, $data, $request)
{
throw new Forbidden();
}
public function actionPatch($params, $data, $request)
{
throw new Forbidden();
}
public function actionListLinked($params, $data, $request)
{
throw new Forbidden();
}
public function actionDelete($params, $data, $request)
{
@@ -120,7 +101,7 @@ class Extension extends \Espo\Core\Controllers\Record
throw BadRequest();
}
if ($this->getConfig()->get('restrictedMode')) {
if (!$this->getUser()->get('isSuperAdmin')) {
if (!$this->getUser()->isSuperAdmin()) {
throw new Forbidden();
}
}
@@ -129,22 +110,42 @@ class Extension extends \Espo\Core\Controllers\Record
return true;
}
public function actionMassUpdate($params, $data, $request)
public function beforeCreate()
{
throw new Forbidden();
}
public function actionMassDelete($params, $data, $request)
public function beforeUpdate()
{
throw new Forbidden();
}
public function actionCreateLink($params, $data, $request)
public function beforePatch()
{
throw new Forbidden();
}
public function actionRemoveLink($params, $data, $request)
public function beforeListLinked()
{
throw new Forbidden();
}
public function beforeMassUpdate()
{
throw new Forbidden();
}
public function beforeMassDelete()
{
throw new Forbidden();
}
public function beforeCreateLink()
{
throw new Forbidden();
}
public function beforeRemoveLink()
{
throw new Forbidden();
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -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

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -38,32 +38,32 @@ class Import extends \Espo\Core\Controllers\Record
{
protected function checkControllerAccess()
{
if (!$this->getUser()->isAdmin()) {
if (!$this->getAcl()->check('Import')) {
throw new Forbidden();
}
}
public function actionPatch($params, $data, $request)
public function beforePatch()
{
throw new BadRequest();
}
public function actionUpdate($params, $data, $request)
public function beforeUpdate()
{
throw new BadRequest();
}
public function actionMassUpdate($params, $data, $request)
public function beforeMassUpdate()
{
throw new BadRequest();
}
public function actionCreateLink($params, $data, $request)
public function beforeCreateLink()
{
throw new BadRequest();
}
public function actionRemoveLink($params, $data, $request)
public function beforeRemoveLink()
{
throw new BadRequest();
}
@@ -90,13 +90,12 @@ class Import extends \Espo\Core\Controllers\Record
$attachment->set('type', 'text/csv');
$attachment->set('role', 'Import File');
$attachment->set('name', 'import-file.csv');
$attachment->set('contents', $contents);
$this->getEntityManager()->saveEntity($attachment);
$this->getFileStorageManager()->putContents($attachment, $contents);
return array(
return [
'attachmentId' => $attachment->id
);
];
}
public function actionRevert($params, $data, $request)
@@ -127,7 +126,7 @@ class Import extends \Espo\Core\Controllers\Record
throw new BadRequest();
}
if (!isset($data->fieldDelimiter)) {
if (!isset($data->delimiter)) {
throw new BadRequest();
}
@@ -167,7 +166,7 @@ class Import extends \Espo\Core\Controllers\Record
throw new BadRequest();
}
if (!isset($data->fields)) {
if (!isset($data->attributeList)) {
throw new BadRequest();
}
@@ -176,9 +175,9 @@ class Import extends \Espo\Core\Controllers\Record
$timezone = $data->timezone;
}
$importParams = array(
$importParams = [
'headerRow' => !empty($data->headerRow),
'fieldDelimiter' => $data->fieldDelimiter,
'delimiter' => $data->delimiter,
'textQualifier' => $data->textQualifier,
'dateFormat' => $data->dateFormat,
'timeFormat' => $data->timeFormat,
@@ -189,8 +188,9 @@ class Import extends \Espo\Core\Controllers\Record
'defaultValues' => $data->defaultValues,
'action' => $data->action,
'skipDuplicateChecking' => !empty($data->skipDuplicateChecking),
'idleMode' => !empty($data->idleMode)
);
'idleMode' => !empty($data->idleMode),
'silentMode' => !empty($data->silentMode),
];
if (property_exists($data, 'updateBy')) {
$importParams['updateBy'] = $data->updateBy;
@@ -202,7 +202,7 @@ class Import extends \Espo\Core\Controllers\Record
throw new Forbidden();
}
return $this->getService('Import')->import($data->entityType, $data->fields, $attachmentId, $importParams);
return $this->getService('Import')->import($data->entityType, $data->attributeList, $attachmentId, $importParams);
}
public function postActionUnmarkAsDuplicate($params, $data)

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -41,24 +41,20 @@ class InboundEmail extends \Espo\Core\Controllers\Record
}
}
public function actionGetFolders($params, $data, $request)
public function postActionGetFolders($params, $data, $request)
{
return $this->getRecordService()->getFolders(array(
'host' => $request->get('host'),
'port' => $request->get('port'),
'ssl' => $request->get('ssl') === 'true',
'username' => $request->get('username'),
'password' => $request->get('password'),
'id' => $request->get('id')
));
return $this->getRecordService()->getFolders([
'host' => $data->host ?? null,
'port' => $data->port ?? null,
'ssl' => $data->ssl ?? false,
'username' => $data->username ?? null,
'password' => $data->password ?? null,
'id' => $data->id ?? null,
]);
}
public function actionTestConnection($params, $data, $request)
public function postActionTestConnection($params, $data, $request)
{
if (!$request->isPost()) {
throw new BadRequest();
}
if (is_null($data->password)) {
$inboundEmail = $this->getEntityManager()->getEntity('InboundEmail', $data->id);
if (!$inboundEmail || !$inboundEmail->id) {
@@ -69,5 +65,4 @@ class InboundEmail extends \Espo\Core\Controllers\Record
return $this->getRecordService()->testConnection(get_object_vars($data));
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -41,37 +41,37 @@ class Job extends \Espo\Core\Controllers\Record
}
}
public function actionCreate($params, $data, $request)
public function beforeCreate()
{
throw new Forbidden();
}
public function actionUpdate($params, $data, $request)
public function beforeUpdate()
{
throw new Forbidden();
}
public function actionPatch($params, $data, $request)
public function beforePatch()
{
throw new Forbidden();
}
public function actionListLinked($params, $data, $request)
public function beforeListLinked()
{
throw new Forbidden();
}
public function actionMassUpdate($params, $data, $request)
public function beforeMassUpdate()
{
throw new Forbidden();
}
public function actionCreateLink($params, $data, $request)
public function beforeCreateLink()
{
throw new Forbidden();
}
public function actionRemoveLink($params, $data, $request)
public function beforeRemoveLink()
{
throw new Forbidden();
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -35,12 +35,24 @@ class LastViewed extends \Espo\Core\Controllers\Base
{
public function getActionIndex($params, $data, $request)
{
$result = $this->getServiceFactory()->create('LastViewed')->get();
$params = [];
return [
'total' => $result['total'],
'list' => isset($result['collection']) ? $result['collection']->toArray() : $result['list']
$params['offset'] = $request->get('offset', 0);
$params['maxSize'] = $request->get('maxSize');
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', \Espo\Core\Controllers\Record::MAX_SIZE_LIMIT);
if (empty($params['maxSize'])) {
$params['maxSize'] = $maxSizeLimit;
}
if (!empty($params['maxSize']) && $params['maxSize'] > $maxSizeLimit) {
throw new Forbidden("Max size should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
$result = $this->getServiceFactory()->create('LastViewed')->getList($params);
return (object) [
'total' => $result->total,
'list' => $result->collection->getValueMapList()
];
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -78,15 +78,18 @@ class Layout extends \Espo\Core\Controllers\Base
return $this->actionUpdate($params, $data, $request);
}
public function actionResetToDefault($params, $data, $request)
public function postActionResetToDefault($params, $data, $request)
{
if (!$request->isPost()) {
throw new BadRequest();
if (!$this->getUser()->isAdmin()) {
throw new Forbidden();
}
if (empty($data->scope) || empty($data->name)) {
throw new BadRequest();
}
$this->getContainer()->get('dataManager')->updateCacheTimestamp();
return $this->getContainer()->get('layout')->resetToDefault($data->scope, $data->name);
}
}

View File

@@ -0,0 +1,72 @@
<?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\Controllers;
use \Espo\Core\Exceptions\Forbidden;
use \Espo\Core\Exceptions\BadRequest;
use \Espo\Core\Exceptions\NotFound;
class LeadCapture extends \Espo\Core\Controllers\Record
{
public function postActionLeadCapture($params, $data, $request, $response)
{
if (empty($params['apiKey'])) throw new BadRequest('No API key provided.');
if (empty($data)) throw new BadRequest('No payload provided.');
$allowOrigin = $this->getConfig()->get('leadCaptureAllowOrigin', '*');
$response->headers->set('Access-Control-Allow-Origin', $allowOrigin);
return $this->getRecordService()->leadCapture($params['apiKey'], $data);
}
public function optionsActionLeadCapture($params, $data, $request, $response)
{
if (empty($params['apiKey'])) throw new BadRequest('No API key provided.');
if (!$this->getRecordService()->isApiKeyValid($params['apiKey'])) {
throw new NotFound();
}
$allowOrigin = $this->getConfig()->get('leadCaptureAllowOrigin', '*');
$response->headers->set('Access-Control-Allow-Headers', 'Content-Type, Accept');
$response->headers->set('Access-Control-Allow-Origin', $allowOrigin);
$response->headers->set('Access-Control-Allow-Methods', 'POST');
return true;
}
public function postActionGenerateNewApiKey($params, $data, $request)
{
if (empty($data->id)) throw new BadRequest();
return $this->getRecordService()->generateNewApiKeyForEntity($data->id)->getValueMap();
}
}

View File

@@ -0,0 +1,38 @@
<?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\Controllers;
use \Espo\Core\Exceptions\Forbidden;
use \Espo\Core\Exceptions\BadRequest;
class LeadCaptureLogRecord extends \Espo\Core\Controllers\Record
{
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -35,7 +35,7 @@ class Notification extends \Espo\Core\Controllers\Record
{
public static $defaultAction = 'list';
public function actionList($params, $data, $request)
public function getActionList($params, $data, $request, $response)
{
$userId = $this->getUser()->id;
@@ -73,29 +73,28 @@ class Notification extends \Espo\Core\Controllers\Record
return $this->getService('Notification')->markAllRead($userId);
}
public function actionExport($params, $data, $request)
public function beforeExport()
{
throw new Error();
}
public function actionMassUpdate($params, $data, $request)
public function beforeMassUpdate()
{
throw new Error();
}
public function actionCreateLink($params, $data, $request)
public function beforeCreateLink()
{
throw new Error();
}
public function actionRemoveLink($params, $data, $request)
public function beforeRemoveLink()
{
throw new Error();
}
public function actionMerge($params, $data, $request)
public function beforeMerge()
{
throw new Error();
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -88,7 +88,7 @@ class Preferences extends \Espo\Core\Controllers\Base
throw new BadRequest();
}
if ($this->getAcl()->getLevel('Preferences', 'read') === 'no') {
if ($this->getAcl()->getLevel('Preferences', 'edit') === 'no') {
throw new Forbidden();
}
@@ -132,7 +132,7 @@ class Preferences extends \Espo\Core\Controllers\Base
$entity->set('smtpEmailAddress', $user->get('emailAddress'));
$entity->set('name', $user->get('name'));
$entity->set('isPortalUser', $user->get('isPortalUser'));
$entity->set('isPortalUser', $user->isPortal());
$entity->clear('smtpPassword');
@@ -142,5 +142,45 @@ class Preferences extends \Espo\Core\Controllers\Base
return $entity->getValueMap();
}
}
public function postActionResetDashboard($params, $data)
{
if (empty($data->id)) throw new BadRequest();
$userId = $data->id;
$this->handleUserAccess($userId);
$user = $this->getEntityManager()->getEntity('User', $userId);
$preferences = $this->getEntityManager()->getEntity('Preferences', $userId);
if (!$user) throw new NotFound();
if (!$preferences) throw new NotFound();
if ($user->isPortal()) throw new Forbidden();
if ($this->getAcl()->getLevel('Preferences', 'edit') === 'no') {
throw new Forbidden();
}
$forbiddenAttributeList = $this->getAcl()->getScopeForbiddenAttributeList('Preferences', 'edit');
if (in_array('dashboardLayout', $forbiddenAttributeList)) {
throw new Forbidden();
}
$dashboardLayout = $this->getConfig()->get('dashboardLayout');
$dashletsOptions = $this->getConfig()->get('dashletsOptions');
$preferences->set([
'dashboardLayout' => $dashboardLayout,
'dashletsOptions' => $dashletsOptions
]);
$this->getEntityManager()->saveEntity($preferences);
return (object) [
'dashboardLayout' => $preferences->get('dashboardLayout'),
'dashletsOptions' => $preferences->get('dashletsOptions')
];
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -35,23 +35,12 @@ use \Espo\Core\Exceptions\BadRequest;
class Settings extends \Espo\Core\Controllers\Base
{
protected function getConfigData()
{
if ($this->getUser()->id == 'system') {
$data = $this->getConfig()->getData();
} else {
$data = $this->getConfig()->getData($this->getUser()->isAdmin());
}
$data = $this->getServiceFactory()->create('Settings')->getConfigData();
$fieldDefs = $this->getMetadata()->get('entityDefs.Settings.fields');
foreach ($fieldDefs as $field => $d) {
if ($d['type'] === 'password') {
unset($data[$field]);
}
}
$data['jsLibs'] = $this->getMetadata()->get('app.jsLibs');
$data->jsLibs = $this->getMetadata()->get('app.jsLibs');
return $data;
}
@@ -76,23 +65,7 @@ class Settings extends \Espo\Core\Controllers\Base
throw new BadRequest();
}
if (
(isset($data->useCache) && $data->useCache !== $this->getConfig()->get('useCache'))
||
(isset($data->aclStrictMode) && $data->aclStrictMode !== $this->getConfig()->get('aclStrictMode'))
) {
$this->getContainer()->get('dataManager')->clearCache();
}
$this->getConfig()->setData($data, $this->getUser()->isAdmin());
$result = $this->getConfig()->save();
if ($result === false) {
throw new Error('Cannot save settings');
}
if (isset($data->defaultCurrency) || isset($data->baseCurrency) || isset($data->currencyRates)) {
$this->getContainer()->get('dataManager')->rebuildDatabase([]);
}
$this->getServiceFactory()->create('Settings')->setConfigData($data);
return $this->getConfigData();
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -49,24 +49,59 @@ class Stream extends \Espo\Core\Controllers\Base
$service = $this->getService('Stream');
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($maxSize)) {
$maxSize = self::MAX_SIZE_LIMIT;
$maxSize = $maxSizeLimit;
}
if (!empty($maxSize) && $maxSize > self::MAX_SIZE_LIMIT) {
throw new Forbidden();
if (!empty($maxSize) && $maxSize > $maxSizeLimit) {
throw new Forbidden("Max size should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
$result = $service->find($scope, $id, array(
$result = $service->find($scope, $id, [
'offset' => $offset,
'maxSize' => $maxSize,
'after' => $after,
'filter' => $filter
));
]);
return array(
'total' => $result['total'],
'list' => $result['collection']->toArray()
);
return (object) [
'total' => $result->total,
'list' => $result->collection->getValueMapList()
];
}
public function getActionListPosts($params, $data, $request)
{
$scope = $params['scope'];
$id = isset($params['id']) ? $params['id'] : null;
$offset = intval($request->get('offset'));
$maxSize = intval($request->get('maxSize'));
$after = $request->get('after');
$where = $request->get('where');
$service = $this->getService('Stream');
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($maxSize)) {
$maxSize = $maxSizeLimit;
}
if (!empty($maxSize) && $maxSize > $maxSizeLimit) {
throw new Forbidden("Max size should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
$result = $service->find($scope, $id, [
'offset' => $offset,
'maxSize' => $maxSize,
'after' => $after,
'filter' => 'posts',
'where' => $where
]);
return (object) [
'total' => $result->total,
'list' => $result->collection->getValueMapList()
];
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -0,0 +1,122 @@
<?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\Controllers;
use Espo\Core\Utils as Utils;
use \Espo\Core\Exceptions\NotFound;
use \Espo\Core\Exceptions\Error;
use \Espo\Core\Exceptions\Forbidden;
use \Espo\Core\Exceptions\BadRequest;
class TemplateManager extends \Espo\Core\Controllers\Base
{
protected function checkControllerAccess()
{
if (!$this->getUser()->isAdmin()) {
throw new Forbidden();
}
}
public function getActionGetTemplate($params, $data, $request)
{
$name = $request->get('name');
if (empty($name)) throw new BadRequest();
$scope = $request->get('scope');
$module = null;
$module = $this->getMetadata()->get(['app', 'templates', $name, 'module']);
$hasSubject = !$this->getMetadata()->get(['app', 'templates', $name, 'noSubject']);
$templateFileManager = $this->getContainer()->get('templateFileManager');
$returnData = (object) [];
$returnData->body = $templateFileManager->getTemplate($name, 'body', $scope, $module);
if ($hasSubject) {
$returnData->subject = $templateFileManager->getTemplate($name, 'subject', $scope, $module);
}
return $returnData;
}
public function postActionSaveTemplate($params, $data)
{
$scope = null;
if (empty($data->name)) {
throw new BadRequest();
}
if (!empty($data->scope)) {
$scope = $data->scope;
}
$templateFileManager = $this->getContainer()->get('templateFileManager');
if (isset($data->subject)) {
$templateFileManager->saveTemplate($data->name, 'subject', $data->subject, $scope);
}
if (isset($data->body)) {
$templateFileManager->saveTemplate($data->name, 'body', $data->body, $scope);
}
return true;
}
public function postActionResetTemplate($params, $data)
{
$scope = null;
if (empty($data->name)) {
throw new BadRequest();
}
if (!empty($data->scope)) {
$scope = $data->scope;
}
$module = null;
$module = $this->getMetadata()->get(['app', 'templates', $data->name, 'module']);
$hasSubject = !$this->getMetadata()->get(['app', 'templates', $data->name, 'noSubject']);
$templateFileManager = $this->getContainer()->get('templateFileManager');
if ($hasSubject) {
$templateFileManager->resetTemplate($data->name, 'subject', $scope);
}
$templateFileManager->resetTemplate($data->name, 'body', $scope);
$returnData = (object) [];
$returnData->body = $templateFileManager->getTemplate($data->name, 'body', $scope, $module);
if ($hasSubject) {
$returnData->subject = $templateFileManager->getTemplate($data->name, 'subject', $scope, $module);
}
return $returnData;
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -105,5 +105,21 @@ class User extends \Espo\Core\Controllers\Record
return $this->getService('User')->passwordChangeRequest($userName, $emailAddress, $url);
}
}
public function postActionGenerateNewApiKey($params, $data, $request)
{
if (empty($data->id)) throw new BadRequest();
if (!$this->getUser()->isAdmin()) throw new Forbidden();
return $this->getRecordService()->generateNewApiKeyForEntity($data->id)->getValueMap();
}
public function beforeCreateLink()
{
if (!$this->getUser()->isAdmin()) throw new Forbidden();
}
public function beforeRemoveLink($params, $data, $request)
{
if (!$this->getUser()->isAdmin()) throw new Forbidden();
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -124,6 +124,11 @@ class Acl
return $this->getAclManager()->getScopeForbiddenFieldList($this->getUser(), $scope, $action, $thresholdLevel);
}
public function getScopeForbiddenLinkList($scope, $action = 'read', $thresholdLevel = 'no')
{
return $this->getAclManager()->getScopeForbiddenLinkList($this->getUser(), $scope, $action, $thresholdLevel);
}
public function checkUserPermission($target, $permissionType = 'userPermission')
{
return $this->getAclManager()->checkUserPermission($this->getUser(), $target, $permissionType);
@@ -133,5 +138,19 @@ class Acl
{
return $this->getAclManager()->checkAssignmentPermission($this->getUser(), $target);
}
}
public function getScopeRestrictedFieldList($scope, $type)
{
return $this->getAclManager()->getScopeRestrictedFieldList($scope, $type);
}
public function getScopeRestrictedAttributeList($scope, $type)
{
return $this->getAclManager()->getScopeRestrictedAttributeList($scope, $type);
}
public function getScopeRestrictedLinkList($scope, $type)
{
return $this->getAclManager()->getScopeRestrictedLinkList($scope, $type);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -36,15 +36,21 @@ use \Espo\ORM\Entity;
class Base implements Injectable
{
protected $dependencies = array(
protected $dependencyList = [
'config',
'entityManager',
'aclManager'
);
'aclManager',
];
protected $dependencies = []; // for backward compatibility
protected $scope;
protected $injections = array();
protected $injections = [];
protected $ownerUserIdAttribute = null;
protected $allowDeleteCreatedThresholdPeriod = '24 hours';
public function inject($name, $object)
{
@@ -75,12 +81,12 @@ class Base implements Injectable
protected function addDependency($name)
{
$this->dependencies[] = $name;
$this->dependencyList[] = $name;
}
public function getDependencyList()
{
return $this->dependencies;
return array_merge($this->dependencyList, $this->dependencies);
}
protected function getConfig()
@@ -265,15 +271,26 @@ class Base implements Injectable
&&
$entity->has('createdById') && $entity->get('createdById') == $user->id
) {
$isDeletedAllowed = false;
if (!$entity->has('assignedUserId')) {
return true;
$isDeletedAllowed = true;
} else {
if (!$entity->get('assignedUserId')) {
return true;
$isDeletedAllowed = true;
} else if ($entity->get('assignedUserId') == $entity->get('createdById')) {
$isDeletedAllowed = true;
}
if ($entity->get('assignedUserId') == $entity->get('createdById')) {
return true;
}
if ($isDeletedAllowed) {
$createdAt = $entity->get('createdAt');
if ($createdAt) {
$deleteThresholdPeriod = $this->getConfig()->get('aclAllowDeleteCreatedThresholdPeriod', $this->allowDeleteCreatedThresholdPeriod);
if (\Espo\Core\Utils\DateTime::isAfterThreshold($createdAt, $deleteThresholdPeriod)) {
return false;
}
}
return true;
}
}
}
@@ -281,5 +298,23 @@ class Base implements Injectable
return false;
}
}
public function getOwnerUserIdAttribute(Entity $entity)
{
if ($this->ownerUserIdAttribute) {
return $this->ownerUserIdAttribute;
}
if ($entity->hasLinkMultipleField('assignedUsers')) {
return 'assignedUsersIds';
}
if ($entity->hasAttribute('assignedUserId')) {
return 'assignedUserId';
}
if ($entity->hasAttribute('createdById')) {
return 'createdById';
}
}
}

View File

@@ -0,0 +1,175 @@
<?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\Acl;
class GlobalRestricton
{
protected $fieldTypeList = [
'forbidden', // totally forbidden
'internal', // reading forbidden, writing allowed
'onlyAdmin', // forbidden for non admin users
'readOnly', // read-only for all users
'nonAdminReadOnly' // read-only for non-admin users
];
protected $linkTypeList = [
'forbidden', // totally forbidden
'internal', // reading forbidden, writing allowed
'onlyAdmin', // forbidden for non admin users
'readOnly', // read-only for all users
'nonAdminReadOnly' // read-only for non-admin users
];
protected $cacheFilePath = 'data/cache/application/entityAcl.php';
private $metadata;
private $fileManager;
private $fieldManagerUtil;
private $data;
public function __construct(
\Espo\Core\Utils\Metadata $metadata,
\Espo\Core\Utils\File\Manager $fileManager,
\Espo\Core\Utils\FieldManagerUtil $fieldManagerUtil
)
{
$this->metadata = $metadata;
$this->fileManager = $fileManager;
$this->fieldManagerUtil = $fieldManagerUtil;
if (!file_exists($this->cacheFilePath)) {
$this->buildCacheFile();
}
$this->data = include($this->cacheFilePath);
}
protected function buildCacheFile()
{
$scopeList = array_keys($this->getMetadata()->get(['entityDefs'], []));
$data = (object) [];
foreach ($scopeList as $scope) {
$fieldList = array_keys($this->getMetadata()->get(['entityDefs', $scope, 'fields'], []));
$linkList = array_keys($this->getMetadata()->get(['entityDefs', $scope, 'links'], []));
$isNotEmpty = false;
$scopeData = (object) [
'fields' => (object) [],
'attributes' => (object) [],
'links' => (object) []
];
foreach ($this->fieldTypeList as $type) {
$resultFieldList = [];
$resultAttributeList = [];
foreach ($fieldList as $field) {
if ($this->getMetadata()->get(['entityAcl', $scope, 'fields', $field, $type])) {
$isNotEmpty = true;
$resultFieldList[] = $field;
$fieldAttributeList = $this->getFieldManagerUtil()->getAttributeList($scope, $field);
foreach ($fieldAttributeList as $attribute) {
$resultAttributeList[] = $attribute;
}
}
}
$scopeData->fields->$type = $resultFieldList;
$scopeData->attributes->$type = $resultAttributeList;
}
foreach ($this->linkTypeList as $type) {
$resultLinkList = [];
foreach ($linkList as $link) {
if ($this->getMetadata()->get(['entityAcl', $scope, 'links', $link, $type])) {
$isNotEmpty = true;
$resultLinkList[] = $link;
}
}
$scopeData->links->$type = $resultLinkList;
}
if ($isNotEmpty) {
$data->$scope = $scopeData;
}
}
$this->data = $data;
$this->getFileManager()->putPhpContents($this->cacheFilePath, $data, true);
}
protected function getMetadata()
{
return $this->metadata;
}
protected function getFileManager()
{
return $this->fileManager;
}
protected function getFieldManagerUtil()
{
return $this->fieldManagerUtil;
}
public function getScopeRestrictedFieldList($scope, $type)
{
if (!property_exists($this->data, $scope)) return [];
if (!property_exists($this->data->$scope, 'fields')) return [];
if (!property_exists($this->data->$scope->fields, $type)) return [];
return $this->data->$scope->fields->$type;
}
public function getScopeRestrictedAttributeList($scope, $type)
{
if (!property_exists($this->data, $scope)) return [];
if (!property_exists($this->data->$scope, 'attributes')) return [];
if (!property_exists($this->data->$scope->attributes, $type)) return [];
return $this->data->$scope->attributes->$type;
}
public function getScopeRestrictedLinkList($scope, $type)
{
if (!property_exists($this->data, $scope)) return [];
if (!property_exists($this->data->$scope, 'links')) return [];
if (!property_exists($this->data->$scope->links, $type)) return [];
return $this->data->$scope->links->$type;
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -182,6 +182,15 @@ class Table
return 'no';
}
public function getHighestLevel($action)
{
if (in_array($action, $this->booleanActionList)) {
return 'yes';
} else {
return 'all';
}
}
private function load()
{
$valuePermissionLists = (object)[];
@@ -554,7 +563,7 @@ class Table
protected function applyAdditional(&$table, &$fieldTable, &$valuePermissionLists)
{
if ($this->getUser()->get('isPortalUser')) {
if ($this->getUser()->isPortal()) {
foreach ($this->getScopeList() as $scope) {
$table->$scope = false;
unset($fieldTable->$scope);

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -41,18 +41,26 @@ class AclManager
private $metadata;
private $implementationHashMap = array();
private $implementationHashMap = [];
private $tableHashMap = array();
private $tableHashMap = [];
protected $tableClassName = '\\Espo\\Core\\Acl\\Table';
protected $userAclClassName = '\\Espo\\Core\\Acl';
protected $globalRestricton;
public function __construct(Container $container)
{
$this->container = $container;
$this->metadata = $container->get('metadata');
$this->globalRestricton = new \Espo\Core\Acl\GlobalRestricton(
$container->get('metadata'),
$container->get('fileManager'),
$container->get('fieldManagerUtil')
);
}
protected function getContainer()
@@ -85,8 +93,8 @@ class AclManager
if (class_exists($className)) {
$acl = new $className($scope);
$dependencies = $acl->getDependencyList();
foreach ($dependencies as $name) {
$dependencyList = $acl->getDependencyList();
foreach ($dependencyList as $name) {
$acl->inject($name, $this->getContainer()->get($name));
}
$this->implementationHashMap[$scope] = $acl;
@@ -125,7 +133,7 @@ class AclManager
public function getLevel(User $user, $scope, $action)
{
if ($user->isAdmin()) {
return 'all';
return $this->getTable($user)->getHighestLevel($action);
}
return $this->getTable($user)->getLevel($scope, $action);
}
@@ -241,16 +249,80 @@ class AclManager
return true;
}
protected function getGlobalRestrictionTypeList(User $user, $action = 'read')
{
$typeList = ['forbidden'];
if ($action === 'read') {
$typeList[] = 'internal';
}
if (!$user->isAdmin()) {
$typeList[] = 'onlyAdmin';
}
if ($action === 'edit') {
$typeList[] = 'readOnly';
if (!$user->isAdmin()) {
$typeList[] = 'nonAdminReadOnly';
}
}
return $typeList;
}
public function getScopeForbiddenAttributeList(User $user, $scope, $action = 'read', $thresholdLevel = 'no')
{
if ($user->isAdmin()) return [];
return $this->getTable($user)->getScopeForbiddenAttributeList($scope, $action, $thresholdLevel);
$list = [];
if (!$user->isAdmin()) {
$list = $this->getTable($user)->getScopeForbiddenAttributeList($scope, $action, $thresholdLevel);
}
if ($thresholdLevel === 'no') {
$list = array_merge(
$list,
$this->getScopeRestrictedAttributeList($scope, $this->getGlobalRestrictionTypeList($user, $action))
);
$list = array_values($list);
}
return $list;
}
public function getScopeForbiddenFieldList(User $user, $scope, $action = 'read', $thresholdLevel = 'no')
{
if ($user->isAdmin()) return [];
return $this->getTable($user)->getScopeForbiddenFieldList($scope, $action, $thresholdLevel);
$list = [];
if (!$user->isAdmin()) {
$list = $this->getTable($user)->getScopeForbiddenFieldList($scope, $action, $thresholdLevel);
}
if ($thresholdLevel === 'no') {
$list = array_merge(
$list,
$this->getScopeRestrictedFieldList($scope, $this->getGlobalRestrictionTypeList($user, $action))
);
$list = array_values($list);
}
return $list;
}
public function getScopeForbiddenLinkList(User $user, $scope, $action = 'read', $thresholdLevel = 'no')
{
$list = [];
if ($thresholdLevel === 'no') {
$list = array_merge(
$list,
$this->getScopeRestrictedLinkList($scope, $this->getGlobalRestrictionTypeList($user, $action))
);
$list = array_values($list);
}
return $list;
}
public function checkUserPermission(User $user, $target, $permissionType = 'userPermission')
@@ -294,4 +366,46 @@ class AclManager
$acl = new $className($this, $user);
return $acl;
}
public function getScopeRestrictedFieldList($scope, $type)
{
if (is_array($type)) {
$typeList = $type;
$list = [];
foreach ($typeList as $type) {
$list = array_merge($list, $this->globalRestricton->getScopeRestrictedFieldList($scope, $type));
}
$list = array_values($list);
return $list;
}
return $this->globalRestricton->getScopeRestrictedFieldList($scope, $type);
}
public function getScopeRestrictedAttributeList($scope, $type)
{
if (is_array($type)) {
$typeList = $type;
$list = [];
foreach ($typeList as $type) {
$list = array_merge($list, $this->globalRestricton->getScopeRestrictedAttributeList($scope, $type));
}
$list = array_values($list);
return $list;
}
return $this->globalRestricton->getScopeRestrictedAttributeList($scope, $type);
}
public function getScopeRestrictedLinkList($scope, $type)
{
if (is_array($type)) {
$typeList = $type;
$list = [];
foreach ($typeList as $type) {
$list = array_merge($list, $this->globalRestricton->getScopeRestrictedLinkList($scope, $type));
}
$list = array_values($list);
return $list;
}
return $this->globalRestricton->getScopeRestrictedLinkList($scope, $type);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -81,6 +81,11 @@ class Application
return $this->container;
}
protected function getConfig()
{
return $this->getContainer()->get('config');
}
public function run($name = 'default')
{
$this->routeHooks();
@@ -94,7 +99,7 @@ class Application
exit;
}
public function runEntryPoint($entryPoint, $data = array(), $final = false)
public function runEntryPoint($entryPoint, $data = [], $final = false)
{
if (empty($entryPoint)) {
throw new \Error();
@@ -134,6 +139,11 @@ class Application
public function runCron()
{
if ($this->getConfig()->get('cronDisabled')) {
$GLOBALS['log']->warning("Cron is not run because it's disabled with 'cronDisabled' param.");
return;
}
$auth = $this->createAuth();
$auth->useNoAuth();
@@ -141,6 +151,56 @@ class Application
$cronManager->run();
}
public function runDaemon()
{
$maxProcessNumber = $this->getConfig()->get('daemonMaxProcessNumber');
$interval = $this->getConfig()->get('daemonInterval');
$timeout = $this->getConfig()->get('daemonProcessTimeout');
$phpExecutablePath = $this->getConfig()->get('phpExecutablePath');
if (!$phpExecutablePath) {
$phpExecutablePath = (new \Symfony\Component\Process\PhpExecutableFinder)->find();
}
if (!$maxProcessNumber || !$interval) {
$GLOBALS['log']->error("Daemon config params are not set.");
return;
}
$processList = [];
while (true) {
$toSkip = false;
$runningCount = 0;
foreach ($processList as $i => $process) {
if ($process->isRunning()) {
$runningCount++;
} else {
unset($processList[$i]);
}
}
$processList = array_values($processList);
if (count($runningCount) >= $maxProcessNumber) {
$toSkip = true;
}
if (!$toSkip) {
$process = new \Symfony\Component\Process\Process([$phpExecutablePath, 'cron.php']);
$process->setTimeout($timeout);
$process->run();
$processList[] = $process;
}
sleep($interval);
}
}
public function runJob($id)
{
$auth = $this->createAuth();
$auth->useNoAuth();
$cronManager = new \Espo\Core\CronManager($this->container);
$cronManager->runJobById($id);
}
public function runRebuild()
{
$dataManager = $this->getContainer()->get('dataManager');
@@ -153,9 +213,18 @@ class Application
$dataManager->clearCache();
}
public function runCommand(string $command)
{
$auth = $this->createAuth();
$auth->useNoAuth();
$consoleCommandManager = $this->getContainer()->get('consoleCommandManager');
return $consoleCommandManager->run($command);
}
public function isInstalled()
{
$config = $this->getContainer()->get('config');
$config = $this->getConfig();
if (file_exists($config->getConfigPath()) && $config->get('isInstalled')) {
return true;
@@ -193,7 +262,7 @@ class Application
}
$routeOptions = call_user_func($route->getCallable());
$routeKeys = is_array($routeOptions) ? array_keys($routeOptions) : array();
$routeKeys = is_array($routeOptions) ? array_keys($routeOptions) : [];
if (!in_array('controller', $routeKeys, true)) {
return $container->get('output')->render($routeOptions);
@@ -224,7 +293,7 @@ class Application
try {
$controllerManager = $this->getContainer()->get('controllerManager');
$result = $controllerManager->process($controllerName, $actionName, $params, $data, $slim->request());
$result = $controllerManager->process($controllerName, $actionName, $params, $data, $slim->request(), $slim->response());
$container->get('output')->render($result);
} catch (\Exception $e) {
$container->get('output')->processError($e->getMessage(), $e->getCode(), false, $e);
@@ -244,24 +313,22 @@ class Application
protected function getRouteList()
{
$routes = new \Espo\Core\Utils\Route($this->getContainer()->get('config'), $this->getMetadata(), $this->getContainer()->get('fileManager'));
$routes = new \Espo\Core\Utils\Route($this->getConfig(), $this->getMetadata(), $this->getContainer()->get('fileManager'));
return $routes->getAll();
}
protected function initRoutes()
{
$crudList = array_keys($this->getContainer()->get('config')->get('crud'));
$crudList = array_keys($this->getConfig()->get('crud'));
foreach ($this->getRouteList() as $route) {
$method = strtolower($route['method']);
if (!in_array($method, $crudList)) {
if (!in_array($method, $crudList) && $method !== 'options') {
$GLOBALS['log']->error('Route: Method ['.$method.'] does not exist. Please check your route ['.$route['route'].']');
continue;
}
$currentRoute = $this->getSlim()->$method($route['route'], function() use ($route) { //todo change "use" for php 5.4
$currentRoute = $this->getSlim()->$method($route['route'], function() use ($route) {
return $route['params'];
});
@@ -273,31 +340,8 @@ class Application
protected function initAutoloads()
{
$autoload = new \Espo\Core\Utils\Autoload($this->getContainer()->get('config'), $this->getMetadata(), $this->getContainer()->get('fileManager'));
try {
$autoloadList = $autoload->getAll();
} catch (\Exception $e) {} //bad permissions
if (empty($autoloadList)) {
return;
}
$namespacesPath = 'vendor/composer/autoload_namespaces.php';
$existingNamespaces = file_exists($namespacesPath) ? include($namespacesPath) : array();
if (!empty($existingNamespaces) && is_array($existingNamespaces)) {
$existingNamespaces = array_keys($existingNamespaces);
}
$classLoader = new \Composer\Autoload\ClassLoader();
foreach ($autoloadList as $prefix => $path) {
if (!in_array($prefix, $existingNamespaces)) {
$classLoader->add($prefix, $path);
}
}
$classLoader->register(true);
$autoload = new \Espo\Core\Utils\Autoload($this->getConfig(), $this->getMetadata(), $this->getContainer()->get('fileManager'));
$autoload->register();
}
public function setBasePath($basePath)
@@ -316,7 +360,9 @@ class Application
return $_GET['portalId'];
}
if (!empty($_COOKIE['auth-token'])) {
$token = $this->getContainer()->get('entityManager')->getRepository('AuthToken')->where(array('token' => $_COOKIE['auth-token']))->findOne();
$token =
$this->getContainer()->get('entityManager')
->getRepository('AuthToken')->where(['token' => $_COOKIE['auth-token']])->findOne();
if ($token && $token->get('portalId')) {
return $token->get('portalId');
@@ -328,9 +374,9 @@ class Application
public function setupSystemUser()
{
$user = $this->getContainer()->get('entityManager')->getEntity('User', 'system');
$user->set('isAdmin', true);
$user->set('isAdmin', true); // TODO remove in 5.7
$user->set('type', 'system');
$this->getContainer()->setUser($user);
$this->getContainer()->get('entityManager')->setUser($user);
}
}

View File

@@ -0,0 +1,78 @@
<?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\Console;
class CommandManager
{
private $container;
public function __construct(\Espo\Core\Container $container)
{
$this->container = $container;
}
public function run(string $command)
{
$command = ucfirst(\Espo\Core\Utils\Util::hyphenToCamelCase($command));
$argumentList = [];
$options = [];
$flagList = [];
$skipIndex = 1;
if (isset($_SERVER['argv'][0]) && $_SERVER['argv'][0] === 'command.php') {
$skipIndex = 2;
}
foreach ($_SERVER['argv'] as $i => $item) {
if ($i < $skipIndex) continue;
if (strpos($item, '--') === 0 && strpos($item, '=') > 2) {
list($name, $value) = explode('=', substr($item, 2));
$name = \Espo\Core\Utils\Util::hyphenToCamelCase($name);
$options[$name] = $value;
} else if (strpos($item, '-') === 0) {
$flagList[] = substr($item, 1);
} else {
$argumentList[] = $item;
}
}
$className = '\\Espo\\Core\\Console\\Commands\\' . $command;
$className = $this->container->get('metadata')->get(['app', 'consoleCommands', $command, 'className'], $className);
if (!class_exists($className)) {
$msg = "Command '{$command}' does not exist.";
echo $msg . "\n";
throw new \Espo\Core\Exceptions\Error($msg);
}
$impl = new $className($this->container);
return $impl->run($options, $flagList, $argumentList);
}
}

View File

@@ -0,0 +1,87 @@
<?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\Console\Commands;
class AclCheck extends Base
{
public function run($options)
{
$userId = $options['userId'] ?? null;
$scope = $options['scope'] ?? null;
$id = $options['id'] ?? null;
$action = $options['action'] ?? null;
if (empty($userId)) return;
if (empty($scope)) return;
if (empty($id)) return;
$container = $this->getContainer();
$entityManager = $container->get('entityManager');
$user = $entityManager->getEntity('User', $userId);
if (!$user) return;
if ($user->isPortal()) {
$portalIdList = $user->getLinkMultipleIdList('portals');
foreach ($portalIdList as $portalId) {
$application = new \Espo\Core\Portal\Application($portalId);
$containerPortal = $application->getContainer();
$entityManager = $containerPortal->get('entityManager');
$user = $entityManager->getEntity('User', $userId);
if (!$user) return;
$result = $this->check($user, $scope, $id, $action, $containerPortal);
if ($result) {
return 'true';
}
}
return;
}
if ($this->check($user, $scope, $id, $action, $container)) {
return 'true';
}
}
protected function check($user, $scope, $id, $action, $container)
{
$entityManager = $container->get('entityManager');
$entity = $entityManager->getEntity($scope, $id);
if (!$entity) return;
$aclManager = $container->get('aclManager');
if ($aclManager->check($user, $entity, $action)) {
return true;
}
}
}

View File

@@ -0,0 +1,56 @@
<?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\Console\Commands;
class AuthTokenCheck extends Base
{
public function run($options, $flagList, $argumentList)
{
$token = $argumentList[0] ?? null;
if (empty($token)) return;
$entityManager = $this->getContainer()->get('entityManager');
$authToken = $entityManager->getRepository('AuthToken')->where([
'token' => $token,
'isActive' => true,
])->findOne();
if (!$authToken) return;
if (!$authToken->get('userId')) return;
$userId = $authToken->get('userId');
$user = $entityManager->getEntity('User', $userId);
if (!$user) return;
return $user->id;
}
}

View File

@@ -0,0 +1,45 @@
<?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\Console\Commands;
abstract class Base
{
private $container;
public function __construct(\Espo\Core\Container $container)
{
$this->container = $container;
}
protected function getContainer()
{
return $this->container;
}
}

View File

@@ -0,0 +1,39 @@
<?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\Console\Commands;
class ClearCache extends Base
{
public function run()
{
$this->getContainer()->get('dataManager')->clearCache();
echo "Cache has been cleared.\n";
}
}

View File

@@ -0,0 +1,39 @@
<?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\Console\Commands;
class Rebuild extends Base
{
public function run()
{
$this->getContainer()->get('dataManager')->rebuild();
echo "Rebuild has been done.\n";
}
}

View File

@@ -0,0 +1,68 @@
<?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\Console\Commands;
class RunJob extends Base
{
public function run($options, $flags, $argumentList)
{
$jobName = $options['job'] ?? null;
$targetId = $options['targetId'] ?? null;
$targetType = $options['targetType'] ?? null;
if (!$jobName && count($argumentList)) {
$jobName = $argumentList[0];
}
if (!$jobName) echo "No job specified.\n";
$jobName = ucfirst(\Espo\Core\Utils\Util::hyphenToCamelCase($jobName));
$container = $this->getContainer();
$entityManager = $container->get('entityManager');
$job = $entityManager->createEntity('Job', [
'name' => $jobName,
'job' => $jobName,
'targetType' => $targetType,
'targetId' => $targetId,
]);
$cronManager = new \Espo\Core\CronManager($container);
$result = $cronManager->runJob($job);
if ($result) {
echo "Job '{$jobName}' has been executed.\n";
} else {
echo "Job '{$jobName}' failed to execute.\n";
}
}
}

View File

@@ -0,0 +1,186 @@
<?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\Console\Commands;
class Upgrade extends Base
{
public function run()
{
$infoData = $this->getVersionInfo();
if (!$infoData) return;
$nextVersion = $infoData->nextVersion ?? null;
$lastVersion = $infoData->lastVersion ?? null;
$fromVersion = $this->getConfig()->get('version');
fwrite(\STDOUT, "Current version is {$fromVersion}.\n");
if (!$nextVersion) {
echo "There are no available upgrades.\n";
return;
}
fwrite(\STDOUT, "EspoCRM will be upgraded to version {$nextVersion} now. Enter [Y] to continue.\n");
if (!$this->confirm()) {
echo "Upgrade canceled.\n";
return;
}
fwrite(\STDOUT, "Downloading...");
$upgradePackageFilePath = $this->downloadFile($infoData->nextPackage);
if (!$upgradePackageFilePath) return;
fwrite(\STDOUT, "\n");
fwrite(\STDOUT, "Upgrading... This may take a while...");
$this->upgrade($upgradePackageFilePath);
fwrite(\STDOUT, "\n");
fwrite(\STDOUT, $resultText);
$this->getFileManager()->unlink($upgradePackageFilePath);
$app = new \Espo\Core\Application();
$currentVerison = $app->getContainer()->get('config')->get('version');
fwrite(\STDOUT, "Upgrade is complete. Current version is {$currentVerison}.\n");
if ($lastVersion && $lastVersion !== $currentVerison && $fromVersion !== $currentVerison) {
fwrite(\STDOUT, "Newer version is available. Run command again to upgrade.\n");
return;
}
if ($lastVersion && $lastVersion === $currentVerison) {
fwrite(\STDOUT, "You have the latest version.\n");
return;
}
}
protected function upgrade($filePath)
{
$app = new \Espo\Core\Application();
$app->setupSystemUser();
$upgradeManager = new \Espo\Core\UpgradeManager($app->getContainer());
try {
$fileData = file_get_contents($filePath);
$fileData = 'data:application/zip;base64,' . base64_encode($fileData);
$upgradeId = $upgradeManager->upload($fileData);
$upgradeManager->install(['id' => $upgradeId]);
} catch (\Exception $e) {
die("Error: " . $e->getMessage() . "\n");
}
}
protected function confirm()
{
$fh = fopen('php://stdin', 'r');
$inputLine = trim(fgets($fh));
fclose($fh);
if (strtolower($inputLine) !== 'y'){
return false;
}
return true;
}
protected function getConfig()
{
return $this->getContainer()->get('config');
}
protected function getFileManager()
{
return $this->getContainer()->get('fileManager');
}
protected function getVersionInfo()
{
$url = 'https://s.espocrm.com/upgrade/next/';
$url = $this->getConfig()->get('upgradeNextVersionUrl', $url);
$url .= '?fromVersion=' . $this->getConfig()->get('version');
$ch = curl_init();
curl_setopt($ch, \CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, \CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, \CURLOPT_URL, $url);
$result = curl_exec($ch);
curl_close($ch);
try {
$data = json_decode($result);
} catch (\Exception $e) {
echo "Could not parse info about next version.\n";
return;
}
if (!$data) {
echo "Could not get info about next version.\n";
return;
}
return $data;
}
protected function downloadFile($url)
{
$localFilePath = 'data/upload/upgrades/' . \Espo\Core\Utils\Util::generateId() . '.zip';
$this->getFileManager()->putContents($localFilePath, '');
if (is_file($url)) {
copy($url, $localFilePath);
} else {
$options = [
CURLOPT_FILE => fopen($localFilePath, 'w'),
CURLOPT_TIMEOUT => 3600,
CURLOPT_URL => $url
];
$ch = curl_init();
curl_setopt_array($ch, $options);
curl_exec($ch);
curl_close($ch);
}
if (!$this->getFileManager()->isFile($localFilePath)) {
echo "\nCould not download upgrade file.\n";
$this->getFileManager()->unlink($localFilePath);
return;
}
return realpath($localFilePath);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -32,17 +32,13 @@ namespace Espo\Core;
class Container
{
private $data = array();
private $data = [];
/**
* Constructor
*/
public function __construct()
{
}
public function get($name)
public function get(string $name)
{
if (empty($this->data[$name])) {
$this->load($name);
@@ -67,7 +63,7 @@ class Container
} else {
try {
$className = $this->get('metadata')->get('app.loaders.' . ucfirst($name));
$className = $this->get('metadata')->get(['app', 'loaders', ucfirst($name)]);
} catch (\Exception $e) {}
if (!isset($className) || !class_exists($className)) {
@@ -86,10 +82,10 @@ class Container
return null;
}
protected function getServiceClassName($name, $default)
public function getServiceClassName(string $name, string $default)
{
$metadata = $this->get('metadata');
$className = $metadata->get('app.serviceContainer.classNames.' . $name, $default);
$className = $metadata->get(['app', 'serviceContainer', 'classNames', $name], $default);
return $className;
}
@@ -119,7 +115,7 @@ class Container
$rotation = $config->get('logger.rotation', true);
$log = new \Espo\Core\Utils\Log('Espo');
$levelCode = $log->getLevelCode($config->get('logger.level', 'WARNING'));
$levelCode = $log::toMonologLevel($config->get('logger.level', 'WARNING'));
if ($rotation) {
$maxFileNumber = $config->get('logger.maxFileNumber', 30);
@@ -131,7 +127,7 @@ class Container
$errorHandler = new \Monolog\ErrorHandler($log);
$errorHandler->registerExceptionHandler(null, false);
$errorHandler->registerErrorHandler(array(), false);
$errorHandler->registerErrorHandler([], false);
return $log;
}
@@ -176,15 +172,6 @@ class Container
);
}
protected function loadMailSender()
{
$className = $this->getServiceClassName('mailSernder', '\\Espo\\Core\\Mail\\Sender');
return new $className(
$this->get('config'),
$this->get('entityManager')
);
}
protected function loadDateTime()
{
return new \Espo\Core\Utils\DateTime(
@@ -209,16 +196,10 @@ class Container
);
}
protected function loadSelectManagerFactory()
protected function loadNotificatorFactory()
{
return new \Espo\Core\SelectManagerFactory(
$this->get('entityManager'),
$this->get('user'),
$this->get('acl'),
$this->get('aclManager'),
$this->get('metadata'),
$this->get('config'),
$this->get('injectableFactory')
return new \Espo\Core\NotificatorFactory(
$this
);
}
@@ -247,6 +228,14 @@ class Container
);
}
protected function loadInternalAclManager()
{
$className = $this->getServiceClassName('acl', '\\Espo\\Core\\AclManager');
return new $className(
$this->get('container')
);
}
protected function loadAcl()
{
$className = $this->getServiceClassName('acl', '\\Espo\\Core\\Acl');
@@ -359,14 +348,6 @@ class Container
);
}
protected function loadClientManager()
{
return new \Espo\Core\Utils\ClientManager(
$this->get('config'),
$this->get('themeManager')
);
}
protected function loadInjectableFactory()
{
return new \Espo\Core\InjectableFactory(
@@ -379,4 +360,3 @@ class Container
$this->set('user', $user);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -40,12 +40,16 @@ class ControllerManager
private $container;
private $controllersHash = null;
public function __construct(\Espo\Core\Container $container)
{
$this->container = $container;
$this->config = $this->container->get('config');
$this->metadata = $this->container->get('metadata');
$this->controllersHash = (object) [];
}
protected function getConfig()
@@ -58,7 +62,7 @@ class ControllerManager
return $this->metadata;
}
public function process($controllerName, $actionName, $params, $data, $request)
protected function getControllerClassName($controllerName)
{
$customClassName = '\\Espo\\Custom\\Controllers\\' . Util::normilizeClassName($controllerName);
if (class_exists($customClassName)) {
@@ -72,27 +76,48 @@ class ControllerManager
}
}
if ($data && stristr($request->getContentType(), 'application/json')) {
$data = json_decode($data);
}
if (!class_exists($controllerClassName)) {
throw new NotFound("Controller '$controllerName' is not found");
}
$controller = new $controllerClassName($this->container, $request->getMethod());
return $controllerClassName;
}
public function createController($name)
{
$controllerClassName = $this->getControllerClassName($name);
$controller = new $controllerClassName($this->container);
return $controller;
}
public function getController($name)
{
if (!property_exists($this->controllersHash, $name)) {
$this->controllersHash->$name = $this->createController($name);
}
return $this->controllersHash->$name;
}
public function processRequest(\Espo\Core\Controllers\Base $controller, $actionName, $params, $data, $request, $response = null)
{
if ($data && stristr($request->getContentType(), 'application/json')) {
$data = json_decode($data);
}
if ($actionName == 'index') {
$actionName = $controllerClassName::$defaultAction;
$actionName = $controller::$defaultAction;
}
$requestMethod = $request->getMethod();
$actionNameUcfirst = ucfirst($actionName);
$beforeMethodName = 'before' . $actionNameUcfirst;
$actionMethodName = 'action' . $actionNameUcfirst;
$afterMethodName = 'after' . $actionNameUcfirst;
$fullActionMethodName = strtolower($request->getMethod()) . ucfirst($actionMethodName);
$fullActionMethodName = strtolower($requestMethod) . ucfirst($actionMethodName);
if (method_exists($controller, $fullActionMethodName)) {
$primaryActionMethodName = $fullActionMethodName;
@@ -101,24 +126,24 @@ class ControllerManager
}
if (!method_exists($controller, $primaryActionMethodName)) {
throw new NotFound("Action '$actionName' (".$request->getMethod().") does not exist in controller '$controllerName'");
throw new NotFound("Action {$requestMethod} '{$actionName}' does not exist in controller '".$controller->getName()."'.");
}
// TODO Remove in 5.1.0
if ($data instanceof \stdClass) {
if ($this->getMetadata()->get(['app', 'deprecatedControllerActions', $controllerName, $primaryActionMethodName])) {
if ($this->getMetadata()->get(['app', 'deprecatedControllerActions', $controller->getName(), $primaryActionMethodName])) {
$data = get_object_vars($data);
}
}
if (method_exists($controller, $beforeMethodName)) {
$controller->$beforeMethodName($params, $data, $request);
$controller->$beforeMethodName($params, $data, $request, $response);
}
$result = $controller->$primaryActionMethodName($params, $data, $request);
$result = $controller->$primaryActionMethodName($params, $data, $request, $response);
if (method_exists($controller, $afterMethodName)) {
$controller->$afterMethodName($params, $data, $request);
$controller->$afterMethodName($params, $data, $request, $response);
}
if (is_array($result) || is_bool($result) || $result instanceof \StdClass) {
@@ -127,4 +152,10 @@ class ControllerManager
return $result;
}
public function process($controllerName, $actionName, $params, $data, $request, $response = null)
{
$controller = $this->getController($controllerName);
return $this->processRequest($controller, $actionName, $params, $data, $request, $response);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -38,18 +38,12 @@ abstract class Base
private $container;
private $requestMethod;
public static $defaultAction = 'index';
public function __construct(Container $container, $requestMethod = null)
public function __construct(Container $container)
{
$this->container = $container;
if (isset($requestMethod)) {
$this->setRequestMethod($requestMethod);
}
if (empty($this->name)) {
$name = get_class($this);
if (preg_match('@\\\\([\w]+)$@', $name, $matches)) {
@@ -61,6 +55,11 @@ abstract class Base
$this->checkControllerAccess();
}
public function getName()
{
return $this->name;
}
protected function checkControllerAccess()
{
return;
@@ -71,21 +70,6 @@ abstract class Base
return $this->container;
}
/**
* Get request method name (Uppercase)
*
* @return string
*/
protected function getRequestMethod()
{
return $this->requestMethod;
}
protected function setRequestMethod($requestMethod)
{
$this->requestMethod = strtoupper($requestMethod);
}
protected function getUser()
{
return $this->container->get('user');

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -67,11 +67,9 @@ class Record extends Base
public function actionRead($params, $data, $request)
{
$id = $params['id'];
$entity = $this->getRecordService()->readEntity($id);
$entity = $this->getRecordService()->read($id);
if (empty($entity)) {
throw new NotFound();
}
if (!$entity) throw new NotFound();
return $entity->getValueMap();
}
@@ -83,6 +81,8 @@ class Record extends Base
public function actionCreate($params, $data, $request)
{
if (!is_object($data)) throw new BadRequest();
if (!$request->isPost()) {
throw new BadRequest();
}
@@ -93,7 +93,7 @@ class Record extends Base
$service = $this->getRecordService();
if ($entity = $service->createEntity($data)) {
if ($entity = $service->create($data)) {
return $entity->getValueMap();
}
@@ -102,6 +102,8 @@ class Record extends Base
public function actionUpdate($params, $data, $request)
{
if (!is_object($data)) throw new BadRequest();
if (!$request->isPut() && !$request->isPatch()) {
throw new BadRequest();
}
@@ -112,7 +114,7 @@ class Record extends Base
$id = $params['id'];
if ($entity = $this->getRecordService()->updateEntity($id, $data)) {
if ($entity = $this->getRecordService()->update($id, $data)) {
return $entity->getValueMap();
}
@@ -125,40 +127,30 @@ class Record extends Base
throw new Forbidden();
}
$where = $request->get('where');
$offset = $request->get('offset');
$maxSize = $request->get('maxSize');
$asc = $request->get('asc', 'true') === 'true';
$sortBy = $request->get('sortBy');
$q = $request->get('q');
$textFilter = $request->get('textFilter');
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($maxSize)) {
$maxSize = $maxSizeLimit;
}
if (!empty($maxSize) && $maxSize > $maxSizeLimit) {
throw new Forbidden("Max should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
$params = array(
'where' => $where,
'offset' => $offset,
'maxSize' => $maxSize,
'asc' => $asc,
'sortBy' => $sortBy,
'q' => $q,
'textFilter' => $textFilter
);
$params = [];
$this->fetchListParamsFromRequest($params, $request, $data);
$result = $this->getRecordService()->findEntities($params);
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($params['maxSize'])) {
$params['maxSize'] = $maxSizeLimit;
}
if (!empty($params['maxSize']) && $params['maxSize'] > $maxSizeLimit) {
throw new Forbidden("Max size should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
return array(
'total' => $result['total'],
'list' => isset($result['collection']) ? $result['collection']->getValueMapList() : $result['list']
);
$result = $this->getRecordService()->find($params);
if (is_array($result)) {
return [
'total' => $result['total'],
'list' => isset($result['collection']) ? $result['collection']->getValueMapList() : $result['list']
];
}
return [
'total' => $result->total,
'list' => isset($result->collection) ? $result->collection->getValueMapList() : $result->list
];
}
public function getActionListKanban($params, $data, $request)
@@ -167,34 +159,17 @@ class Record extends Base
throw new Forbidden();
}
$where = $request->get('where');
$offset = $request->get('offset');
$maxSize = $request->get('maxSize');
$asc = $request->get('asc', 'true') === 'true';
$sortBy = $request->get('sortBy');
$q = $request->get('q');
$textFilter = $request->get('textFilter');
$params = [];
$this->fetchListParamsFromRequest($params, $request, $data);
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($maxSize)) {
$maxSize = $maxSizeLimit;
if (empty($params['maxSize'])) {
$params['maxSize'] = $maxSizeLimit;
}
if (!empty($maxSize) && $maxSize > $maxSizeLimit) {
throw new Forbidden("Max should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
if (!empty($params['maxSize']) && $params['maxSize'] > $maxSizeLimit) {
throw new Forbidden("Max size should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
$params = array(
'where' => $where,
'offset' => $offset,
'maxSize' => $maxSize,
'asc' => $asc,
'sortBy' => $sortBy,
'q' => $q,
'textFilter' => $textFilter
);
$this->fetchListParamsFromRequest($params, $request, $data);
$result = $this->getRecordService()->getListKanban($params);
return (object) [
@@ -206,19 +181,7 @@ class Record extends Base
protected function fetchListParamsFromRequest(&$params, $request, $data)
{
if ($request->get('primaryFilter')) {
$params['primaryFilter'] = $request->get('primaryFilter');
}
if ($request->get('boolFilterList')) {
$params['boolFilterList'] = $request->get('boolFilterList');
}
if ($request->get('filterList')) {
$params['filterList'] = $request->get('filterList');
}
if ($request->get('select')) {
$params['select'] = explode(',', $request->get('select'));
}
\Espo\Core\Utils\ControllerUtil::fetchListParamsFromRequest($params, $request, $data);
}
public function actionListLinked($params, $data, $request)
@@ -226,40 +189,30 @@ class Record extends Base
$id = $params['id'];
$link = $params['link'];
$where = $request->get('where');
$offset = $request->get('offset');
$maxSize = $request->get('maxSize');
$asc = $request->get('asc', 'true') === 'true';
$sortBy = $request->get('sortBy');
$q = $request->get('q');
$textFilter = $request->get('textFilter');
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($maxSize)) {
$maxSize = $maxSizeLimit;
}
if (!empty($maxSize) && $maxSize > $maxSizeLimit) {
throw new Forbidden("Max should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
$params = array(
'where' => $where,
'offset' => $offset,
'maxSize' => $maxSize,
'asc' => $asc,
'sortBy' => $sortBy,
'q' => $q,
'textFilter' => $textFilter
);
$params = [];
$this->fetchListParamsFromRequest($params, $request, $data);
$result = $this->getRecordService()->findLinkedEntities($id, $link, $params);
$maxSizeLimit = $this->getConfig()->get('recordListMaxSizeLimit', self::MAX_SIZE_LIMIT);
if (empty($params['maxSize'])) {
$params['maxSize'] = $maxSizeLimit;
}
if (!empty($params['maxSize']) && $params['maxSize'] > $maxSizeLimit) {
throw new Forbidden("Max size should should not exceed " . $maxSizeLimit . ". Use offset and limit.");
}
return array(
'total' => $result['total'],
'list' => isset($result['collection']) ? $result['collection']->getValueMapList() : $result['list']
);
$result = $this->getRecordService()->findLinked($id, $link, $params);
if (is_array($result)) {
return [
'total' => $result['total'],
'list' => isset($result['collection']) ? $result['collection']->getValueMapList() : $result['list']
];
}
return (object) [
'total' => $result->total,
'list' => isset($result->collection) ? $result->collection->getValueMapList() : $result->list
];
}
public function actionDelete($params, $data, $request)
@@ -270,7 +223,7 @@ class Record extends Base
$id = $params['id'];
if ($this->getRecordService()->deleteEntity($id)) {
if ($this->getRecordService()->delete($id)) {
return true;
}
throw new Error();
@@ -278,6 +231,8 @@ class Record extends Base
public function actionExport($params, $data, $request)
{
if (!is_object($data)) throw new BadRequest();
if (!$request->isPost()) {
throw new BadRequest();
}
@@ -319,9 +274,9 @@ class Record extends Base
$params['format'] = $data->format;
}
return array(
return [
'id' => $this->getRecordService()->export($params)
);
];
}
public function actionMassUpdate($params, $data, $request)
@@ -337,6 +292,10 @@ class Record extends Base
throw new BadRequest();
}
if ($this->getAcl()->get('massUpdatePermission') !== 'yes') {
throw new Forbidden();
}
$params = array();
if (property_exists($data, 'where') && !empty($data->byWhere)) {
$params['where'] = json_decode(json_encode($data->where), true);
@@ -349,33 +308,26 @@ class Record extends Base
$attributes = $data->attributes;
$idsUpdated = $this->getRecordService()->massUpdate($attributes, $params);
$idsUpdated = $this->getRecordService()->massUpdate($params, $attributes);
return $idsUpdated;
}
public function actionMassDelete($params, $data, $request)
public function postActionMassDelete($params, $data, $request)
{
if (!$request->isPost()) {
throw new BadRequest();
}
if (!$this->getAcl()->check($this->name, 'delete')) {
throw new Forbidden();
}
$params = array();
if (property_exists($data, 'where') && !empty($data->byWhere)) {
$where = json_decode(json_encode($data->where), true);
$params['where'] = $where;
if (property_exists($data, 'selectData')) {
$params['selectData'] = json_decode(json_encode($data->selectData), true);
$actionParams = $this->getMassActionParamsFromData($data);
if (array_key_exists('where', $actionParams)) {
if ($this->getAcl()->get('massUpdatePermission') !== 'yes') {
throw new Forbidden();
}
}
if (property_exists($data, 'ids')) {
$params['ids'] = $data->ids;
}
return $this->getRecordService()->massRemove($params);
return $this->getRecordService()->massDelete($actionParams);
}
public function actionCreateLink($params, $data, $request)
@@ -402,7 +354,7 @@ class Record extends Base
$selectData = json_decode(json_encode($data->selectData), true);
}
return $this->getRecordService()->linkEntityMass($id, $link, $where, $selectData);
return $this->getRecordService()->massLink($id, $link, $where, $selectData);
} else {
$foreignIdList = array();
if (isset($data->id)) {
@@ -416,7 +368,7 @@ class Record extends Base
$result = false;
foreach ($foreignIdList as $foreignId) {
if ($this->getRecordService()->linkEntity($id, $link, $foreignId)) {
if ($this->getRecordService()->link($id, $link, $foreignId)) {
$result = true;
}
}
@@ -453,7 +405,7 @@ class Record extends Base
$result = false;
foreach ($foreignIdList as $foreignId) {
if ($this->getRecordService()->unlinkEntity($id, $link, $foreignId)) {
if ($this->getRecordService()->unlink($id, $link, $foreignId)) {
$result = $result || true;
}
}
@@ -549,4 +501,39 @@ class Record extends Base
return $this->getRecordService()->massUnfollow($params);
}
protected function getMassActionParamsFromData($data)
{
$params = [];
if (property_exists($data, 'where') && !empty($data->byWhere)) {
$where = json_decode(json_encode($data->where), true);
$params['where'] = $where;
if (property_exists($data, 'selectData')) {
$params['selectData'] = json_decode(json_encode($data->selectData), true);
}
}
if (property_exists($data, 'ids')) {
$params['ids'] = $data->ids;
}
return $params;
}
public function postActionMassRecalculateFormula($params, $data, $request)
{
if (!$this->getUser()->isAdmin()) throw new Forbidden();
if (!$this->getAcl()->check($this->name, 'edit')) throw new Forbidden();
return $this->getRecordService()->massRecalculateFormula($this->getMassActionParamsFromData($data));
}
public function postActionRestoreDeleted($params, $data, $request)
{
if (!$this->getUser()->isAdmin()) throw new Forbidden();
$id = $data->id ?? null;
if (!$id) throw new Forbidden();
return $this->getRecordService()->restoreDeleted($id);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -28,9 +28,12 @@
************************************************************************/
namespace Espo\Core;
use \PDO;
use Espo\Core\Utils\Json;
use Espo\Core\Exceptions\NotFound;
use Espo\Core\Exceptions\Error;
class CronManager
{
@@ -48,8 +51,21 @@ class CronManager
private $cronScheduledJobUtil;
private $useProcessPool = false;
private $asSoonAsPossibleSchedulingList = [
'*',
'* *',
'* * *',
'* * * *',
'* * * * *',
'* * * * * *',
];
const PENDING = 'Pending';
const READY = 'Ready';
const RUNNING = 'Running';
const SUCCESS = 'Success';
@@ -70,6 +86,14 @@ class CronManager
$this->scheduledJobUtil = $this->container->get('scheduledJob');
$this->cronJobUtil = new \Espo\Core\Utils\Cron\Job($this->config, $this->entityManager);
$this->cronScheduledJobUtil = new \Espo\Core\Utils\Cron\ScheduledJob($this->config, $this->entityManager);
if ($this->getConfig()->get('jobRunInParallel')) {
if (\Spatie\Async\Pool::isSupported()) {
$this->useProcessPool = true;
} else {
$GLOBALS['log']->warning("CronManager: useProcessPool requires pcntl and posix extensions.");
}
}
}
protected function getContainer()
@@ -146,10 +170,18 @@ class CronManager
return false;
}
protected function useProcessPool()
{
return $this->useProcessPool;
}
public function setUseProcessPool($useProcessPool)
{
$this->useProcessPool = $useProcessPool;
}
/**
* Run Cron
*
* @return void
*/
public function run()
{
@@ -160,17 +192,39 @@ class CronManager
$this->setLastRunTime(time());
$this->getCronJobUtil()->markFailedJobs();
$this->getCronJobUtil()->markJobsFailed();
$this->getCronJobUtil()->updateFailedJobAttempts();
$this->createJobsFromScheduledJobs();
$this->getCronJobUtil()->removePendingJobDuplicates();
$pendingJobList = $this->getCronJobUtil()->getPendingJobList();
$this->processPendingJobs();
}
public function processPendingJobs($queue = null, $limit = null, $poolDisabled = false, $noLock = false)
{
if (is_null($limit)) {
$limit = intval($this->getConfig()->get('jobMaxPortion', 0));
}
$pendingJobList = $this->getCronJobUtil()->getPendingJobList($queue, $limit);
$useProcessPool = $this->useProcessPool();
if ($poolDisabled) {
$useProcessPool = false;
}
if ($useProcessPool) {
$pool = \Spatie\Async\Pool::create()
->autoload(getcwd() . '/vendor/autoload.php')
->concurrency($this->getConfig()->get('jobPoolConcurrencyNumber'))
->timeout($this->getConfig()->get('jobPeriodForActiveProcess'));
}
foreach ($pendingJobList as $job) {
$skip = false;
$this->getEntityManager()->getPdo()->query('LOCK TABLES `job` WRITE');
if ($this->getCronJobUtil()->isJobPending($job->id)) {
if (!$noLock) $this->lockJobTable();
if ($noLock || $this->getCronJobUtil()->isJobPending($job->id)) {
if ($job->get('scheduledJobId')) {
if ($this->getCronJobUtil()->isScheduledJobRunning($job->get('scheduledJobId'), $job->get('targetId'), $job->get('targetType'))) {
$skip = true;
@@ -181,43 +235,107 @@ class CronManager
}
if ($skip) {
$this->getEntityManager()->getPdo()->query('UNLOCK TABLES');
if (!$noLock) $this->unlockTables();
continue;
}
$job->set('status', self::RUNNING);
$job->set('pid', $this->getCronJobUtil()->getPid());
$this->getEntityManager()->saveEntity($job);
$this->getEntityManager()->getPdo()->query('UNLOCK TABLES');
$job->set('startedAt', date('Y-m-d H:i:s'));
$isSuccess = true;
$skipLog = false;
try {
if ($job->get('scheduledJobId')) {
$this->runScheduledJob($job);
} else {
$this->runService($job);
}
} catch (\Exception $e) {
$isSuccess = false;
if ($e->getCode() === -1) {
$job->set('attempts', 0);
$skipLog = true;
} else {
$GLOBALS['log']->error('CronManager: Failed job running, job ['.$job->id.']. Error Details: '.$e->getMessage());
}
if ($useProcessPool) {
$job->set('status', self::READY);
} else {
$job->set('status', self::RUNNING);
$job->set('pid', \Espo\Core\Utils\System::getPid());
}
$status = $isSuccess ? self::SUCCESS : self::FAILED;
$job->set('status', $status);
$this->getEntityManager()->saveEntity($job);
if (!$noLock) $this->unlockTables();
if ($job->get('scheduledJobId') && !$skipLog) {
$this->getCronScheduledJobUtil()->addLogRecord($job->get('scheduledJobId'), $status, null, $job->get('targetId'), $job->get('targetType'));
if ($useProcessPool) {
$task = new \Espo\Core\Utils\Cron\JobTask($job->id);
$pool->add($task);
} else {
$this->runJob($job);
}
}
if ($useProcessPool) {
$pool->wait();
}
}
protected function lockJobTable()
{
$this->getEntityManager()->getPdo()->query('LOCK TABLES `job` WRITE');
}
protected function unlockTables()
{
$this->getEntityManager()->getPdo()->query('UNLOCK TABLES');
}
public function runJobById($id)
{
if (empty($id)) throw new Error();
$job = $this->getEntityManager()->getEntity('Job', $id);
if (!$job) throw new Error("Job {$id} not found.");
if ($job->get('status') !== self::READY) {
throw new Error("Can't run job {$id} with no status Ready.");
}
if (!$job->get('startedAt')) {
$job->set('startedAt', date('Y-m-d H:i:s'));
}
$job->set('status', self::RUNNING);
$job->set('pid', \Espo\Core\Utils\System::getPid());
$this->getEntityManager()->saveEntity($job);
$this->runJob($job);
}
public function runJob(\Espo\Entities\Job $job)
{
$isSuccess = true;
$skipLog = false;
try {
if ($job->get('scheduledJobId')) {
$this->runScheduledJob($job);
} else if ($job->get('job')) {
$this->runJobByName($job);
} else {
$this->runService($job);
}
} catch (\Throwable $e) {
$isSuccess = false;
if ($e->getCode() === -1) {
$job->set('attempts', 0);
$skipLog = true;
} else {
$GLOBALS['log']->error('CronManager: Failed job running, job ['.$job->id.']. Error Details: '.$e->getMessage());
}
}
$status = $isSuccess ? self::SUCCESS : self::FAILED;
$job->set('status', $status);
if ($isSuccess) {
$job->set('executedAt', date('Y-m-d H:i:s'));
}
$this->getEntityManager()->saveEntity($job);
if ($job->get('scheduledJobId') && !$skipLog) {
$this->getCronScheduledJobUtil()->addLogRecord($job->get('scheduledJobId'), $status, null, $job->get('targetId'), $job->get('targetType'));
}
if ($isSuccess) return true;
return false;
}
protected function runScheduledJob($job)
@@ -225,18 +343,14 @@ class CronManager
$jobName = $job->get('scheduledJobJob');
$className = $this->getScheduledJobUtil()->get($jobName);
if ($className === false) {
throw new NotFound();
}
if ($className === false) throw new Error("No class name for job {$jobName}.");
$jobClass = new $className($this->container);
$method = 'run';
if (!method_exists($jobClass, $method)) {
throw new NotFound();
}
if (!method_exists($jobClass, $method)) throw new Error();
$data = null;
if ($job->get('data')) {
$data = $job->get('data');
}
@@ -244,80 +358,78 @@ class CronManager
$jobClass->$method($data, $job->get('targetId'), $job->get('targetType'));
}
/**
* Run Service
*
* @param array $job
*
* @return void
*/
protected function runService($job)
{
$serviceName = $job->get('serviceName');
if (!$serviceName) {
throw new Error('Job with empty serviceName.');
throw new Error("Job with empty serviceName.");
}
if (!$this->getServiceFactory()->checkExists($serviceName)) {
throw new NotFound();
}
if (!$this->getServiceFactory()->checkExists($serviceName)) throw new Error();
$service = $this->getServiceFactory()->create($serviceName);
$methodNameDeprecated = $job->get('method');
$methodName = $job->get('methodName');
$isDeprecated = false;
if (!$methodName) {
$isDeprecated = true;
$methodName = $methodNameDeprecated;
}
if (!$methodName) throw new Error('Job with empty methodName.');
if (!$methodName) {
throw new Error('Job with empty methodName.');
}
if (!method_exists($service, $methodName)) {
throw new NotFound();
}
if (!method_exists($service, $methodName)) throw new Error();
$data = $job->get('data');
if ($isDeprecated) {
$data = Json::decode(Json::encode($data), true);
}
$service->$methodName($data, $job->get('targetId'), $job->get('targetType'));
}
protected function runJobByName($job)
{
$jobName = $job->get('job');
$className = $this->getScheduledJobUtil()->get($jobName);
if ($className === false) throw new Error("No class name for job {$jobName}.");
$jobClass = new $className($this->container);
$method = 'run';
if (!method_exists($jobClass, $method)) throw new Error();
$data = $job->get('data') ?: null;
$jobClass->$method($data, $job->get('targetId'), $job->get('targetType'));
}
protected function createJobsFromScheduledJobs()
{
$activeScheduledJobList = $this->getCronScheduledJobUtil()->getActiveScheduledJobList();
$runningScheduledJobIdList = $this->getCronJobUtil()->getRunningScheduledJobIdList();
$createdJobIdList = array();
$createdJobIdList = [];
foreach ($activeScheduledJobList as $scheduledJob) {
$scheduling = $scheduledJob->get('scheduling');
$asSoonAsPossible = in_array($scheduling, $this->asSoonAsPossibleSchedulingList);
try {
$cronExpression = \Cron\CronExpression::factory($scheduling);
} catch (\Exception $e) {
$GLOBALS['log']->error('CronManager (ScheduledJob ['.$scheduledJob->id.']): Scheduling string error - '. $e->getMessage() . '.');
continue;
if ($asSoonAsPossible) {
$nextDate = date('Y-m-d H:i:s');
} else {
try {
$cronExpression = \Cron\CronExpression::factory($scheduling);
} catch (\Exception $e) {
$GLOBALS['log']->error('CronManager (ScheduledJob ['.$scheduledJob->id.']): Scheduling string error - '. $e->getMessage() . '.');
continue;
}
try {
$nextDate = $cronExpression->getNextRunDate()->format('Y-m-d H:i:s');
} catch (\Exception $e) {
$GLOBALS['log']->error('CronManager (ScheduledJob ['.$scheduledJob->id.']): Unsupported CRON expression ['.$scheduling.']');
continue;
}
$existingJob = $this->getCronJobUtil()->getJobByScheduledJobIdOnMinute($scheduledJob->id, $nextDate);
if ($existingJob) continue;
}
try {
$nextDate = $cronExpression->getNextRunDate()->format('Y-m-d H:i:s');
} catch (\Exception $e) {
$GLOBALS['log']->error('CronManager (ScheduledJob ['.$scheduledJob->id.']): Unsupported CRON expression ['.$scheduling.']');
continue;
}
$existingJob = $this->getCronJobUtil()->getJobByScheduledJob($scheduledJob->id, $nextDate);
if ($existingJob) continue;
$className = $this->getScheduledJobUtil()->get($scheduledJob->get('job'));
if ($className) {
if (method_exists($className, 'prepare')) {
@@ -331,13 +443,25 @@ class CronManager
continue;
}
$pendingCount = $this->getCronJobUtil()->getPendingCountByScheduledJobId($scheduledJob->id);
if ($asSoonAsPossible) {
if ($pendingCount > 0) {
continue;
}
} else {
if ($pendingCount > 1) {
continue;
}
}
$jobEntity = $this->getEntityManager()->getEntity('Job');
$jobEntity->set(array(
$jobEntity->set([
'name' => $scheduledJob->get('name'),
'status' => self::PENDING,
'scheduledJobId' => $scheduledJob->id,
'executeTime' => $nextDate
));
]);
$this->getEntityManager()->saveEntity($jobEntity);
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -119,6 +119,7 @@ class DataManager
$metadata->init(true);
$ormData = $this->getContainer()->get('ormMetadata')->getData(true);
$this->getContainer()->get('entityManager')->setMetadata($ormData);
$this->updateCacheTimestamp();
@@ -130,18 +131,21 @@ class DataManager
$metadata = $this->getContainer()->get('metadata');
$entityManager = $this->getContainer()->get('entityManager');
$jobs = $metadata->get(['entityDefs', 'ScheduledJob', 'jobs'], array());
$jobs = $metadata->get(['entityDefs', 'ScheduledJob', 'jobs'], []);
$systemJobNameList = [];
foreach ($jobs as $jobName => $defs) {
if ($jobName && !empty($defs['isSystem']) && !empty($defs['scheduling'])) {
$systemJobNameList[] = $jobName;
if (!$entityManager->getRepository('ScheduledJob')->where(array(
'job' => $jobName,
'status' => 'Active',
'scheduling' => $defs['scheduling']
))->findOne()) {
$job = $entityManager->getRepository('ScheduledJob')->where(array(
$job = $entityManager->getRepository('ScheduledJob')->where([
'job' => $jobName
))->findOne();
])->findOne();
if ($job) {
$entityManager->removeEntity($job);
}
@@ -150,28 +154,34 @@ class DataManager
$name = $defs['name'];
}
$job = $entityManager->getEntity('ScheduledJob');
$job->set(array(
$job->set([
'job' => $jobName,
'status' => 'Active',
'scheduling' => $defs['scheduling'],
'isInternal' => true,
'name' => $name
));
]);
$entityManager->saveEntity($job);
}
}
}
$internalScheduledJobList = $entityManager->getRepository('ScheduledJob')->where([
'isInternal' => true
])->find();
foreach ($internalScheduledJobList as $scheduledJob) {
$jobName = $scheduledJob->get('job');
if (!in_array($jobName, $systemJobNameList)) {
$entityManager->getRepository('ScheduledJob')->deleteFromDb($scheduledJob->id);
}
}
}
/**
* Update cache timestamp
*
* @return bool
*/
public function updateCacheTimestamp()
{
$this->getContainer()->get('config')->updateCacheTimestamp();
$this->getContainer()->get('config')->save();
return true;
}
@@ -193,6 +203,12 @@ class DataManager
$config->set('fullTextSearchMinLength', $fullTextSearchMinLength);
$cryptKey = $config->get('cryptKey');
if (!$cryptKey) {
$cryptKey = \Espo\Core\Utils\Util::generateKey();
$config->set('cryptKey', $cryptKey);
}
$config->save();
}
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -25,14 +25,11 @@
*
* 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 BadRequest extends \Exception
{
protected $code = 400;
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -25,13 +25,11 @@
*
* 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 Conflict extends \Exception
{
protected $code = 409;
}

View File

@@ -3,8 +3,8 @@
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2018 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
* 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
@@ -25,7 +25,7 @@
*
* 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;
@@ -33,5 +33,3 @@ class Error extends InternalServerError
{
}

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