Commit Graph

9194 Commits

Author SHA1 Message Date
Laurent Destailleur
1e2e438103 Fix #yogosha 2023-02-04 00:18:30 +01:00
Julien Nicolas
04e3b47547
Division by zero 2023-02-03 15:56:50 +01:00
Rept0id
fb655a0b0a Updated function dol_eval, added error handling
- There were cases that dol_eval() would break the whole system.

-That was happening in case of using a new version plugin on an old version dolibarr. New plugin validates through isModActive() instead of $conf->moduleName->enabled. Even if you were deactivating the plugin, or totally delete it, the records were still on database for menu, so there were no obvious solution. This update adds a backwards compatibility, makes doli more stable and counterparts the use of eval, making it more safe.

- Use of eval is not bad, as well there are techniques in any project that are project-related useful and smart. For example, Linux kernel uses GOTO. But in such cases, there needs to be a safety net.

-I found out this after a lot of trouble, I hope this small fix will save other developers.

👍
2023-02-02 16:50:50 +02:00
Laurent Destailleur
a6f6192d78 Fix warnings 2023-02-01 11:20:52 +01:00
Laurent Destailleur
9fb08b5a0a Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-31 21:28:59 +01:00
Laurent Destailleur
36cf05318b Debug v17 2023-01-31 21:17:06 +01:00
Laurent Destailleur
5c6d0bc26f Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-30 03:01:13 +01:00
Laurent Destailleur
1fe08ad3b8 Fix missing hook 2023-01-30 02:56:29 +01:00
Laurent Destailleur
dfcba30577 FIX Check of date of validity 2023-01-27 14:06:31 +01:00
Laurent Destailleur
a6daba61ce Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-26 02:32:08 +01:00
Laurent Destailleur
dbfa172e19 Debug view of thumbs for svg 2023-01-25 17:39:21 +01:00
Laurent Destailleur
faa44379e8 Debug view of thumbs for svg 2023-01-25 17:38:04 +01:00
Laurent Destailleur
5429882147 Debug v17 2023-01-24 18:23:46 +01:00
Laurent Destailleur
5b5a3547e2 Debug v17 2023-01-24 13:00:09 +01:00
Laurent Destailleur
1513c46c77 Doxygen 2023-01-22 19:25:37 +01:00
Laurent Destailleur
f7302232df Fix rounding 2023-01-20 19:34:26 +01:00
Laurent Destailleur
80d46a22f1 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-18 21:36:57 +01:00
Laurent Destailleur
cd5009d8a4 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-01-18 21:21:49 +01:00
Laurent Destailleur
283ad1abcf Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-01-18 20:54:16 +01:00
Laurent Destailleur
2a299068ad Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2023-01-18 20:45:44 +01:00
Laurent Destailleur
c33f5474b1
Merge pull request #23562 from ptibogxiv/patch-80
Fix php 8 warnings
2023-01-18 20:28:25 +01:00
Laurent Destailleur
e1dd435b21
Merge pull request #23595 from Hystepik/develop#1
New #23494 : add birthday to thirdparty contact list
2023-01-17 17:36:02 +01:00
hystepik
fc8aed1a6d New #23494 : add birthday to thirdparty contact list 2023-01-17 12:16:03 +01:00
Laurent Destailleur
28c3d18583 FIX Component js to generate password 2023-01-17 11:49:20 +01:00
Laurent Destailleur
8ced6d52e7 FIX Component js to generate password 2023-01-17 11:47:16 +01:00
Laurent Destailleur
7668233d0c NEW Tooltip to explain how to add a photo on product 2023-01-17 10:22:23 +01:00
Maxime Kohlhaas
b54a15f504 Fix missing keywords in dol_dir_list_in_database 2023-01-15 09:11:29 +01:00
Laurent Destailleur
bd8a48b6dd css 2023-01-15 01:45:54 +01:00
Laurent Destailleur
982ee6259f NEW Session invalidation after a password change 2023-01-14 21:21:48 +01:00
ptibogxiv
e4515f01c0
Fix php 8 warnings 2023-01-14 11:56:41 +01:00
Laurent Destailleur
3bac52d053
Merge pull request #23143 from milenmk/massaction-delete-project-tasks
NEW|New [Bulk delete Project tasks]
2023-01-13 23:29:19 +01:00
Laurent Destailleur
c3a71b264e
Merge pull request #23455 from ptibogxiv/patch-76
Fix php 8 error
2023-01-13 21:34:37 +01:00
Laurent Destailleur
97061a9a92 NEW Use a cache file for external RSS in calendar 2023-01-13 17:17:23 +01:00
Laurent Destailleur
2890b7354f
Merge pull request #23533 from Hystepik/develop#1
New : Add reload of modules in configuration
2023-01-13 13:24:10 +01:00
Laurent Destailleur
8eb89e0ad1 Remove merged feature with too many pb:
1=Not yet implemented everywhere.
2=Seems a duplicate info with the picto warning when late (so in past
not done)
3=Is also a duplicate with the existing css event-future, event-past,
event-current
4=It overwrites to choice done by the theme
5=Implementation is wrong, it must use css and not #background

Use CSS instead
2023-01-13 12:14:20 +01:00
Laurent Destailleur
5bbfdbb775 NEW Show counter of access of website in website list 2023-01-12 22:11:13 +01:00
hystepik
551daa5ca1 New : Add reload of modules in configuration 2023-01-12 16:26:39 +01:00
Laurent Destailleur
8ced29cb00 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-11 21:32:41 +01:00
Laurent Destailleur
4f350d878c Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-01-11 21:07:43 +01:00
Laurent Destailleur
44eab6b4e2
Merge pull request #23483 from ATM-Consulting/NEW_18_helper_functions_for_dates
New 18 helper functions for dates
2023-01-11 20:29:15 +01:00
Laurent Destailleur
2eb054a170 Fix try fix function not found of qodana 2023-01-11 17:06:23 +01:00
Laurent Destailleur
33917e97b6 NEW Increment website counter on each page access in website module 2023-01-11 01:12:08 +01:00
Laurent Destailleur
2da8c1d9bc Fix rounding 2023-01-10 11:33:17 +01:00
atm-florian
36c51de284 Merge branch 'develop' of github.com:Dolibarr/dolibarr into NEW_18_helper_functions_for_dates 2023-01-10 11:06:29 +01:00
Laurent Destailleur
2f3d87f27a Add option MAIN_SALETAX_AUTOSWITCH_I_CS_FOR_INDIA for India 2023-01-09 13:44:29 +01:00
Laurent Destailleur
7ca337cf8b Add option MAIN_SALETAX_AUTOSWITCH_I_CS_FOR_INDIA for India 2023-01-09 13:40:02 +01:00
Laurent Destailleur
de681fee07 Comment in english 2023-01-09 13:07:55 +01:00
Laurent Destailleur
38a82649cb Clean code 2023-01-09 12:30:56 +01:00
Laurent Destailleur
027ff49100 Try to fix warnings 2023-01-08 19:28:38 +01:00
ptibogxiv
88c3f33e18
Fix php 8 error 2023-01-08 15:52:20 +01:00
Laurent Destailleur
4336b188c7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2023-01-07 17:36:52 +01:00
Laurent Destailleur
d33a7ff4d4 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-01-07 17:30:15 +01:00
Laurent Destailleur
98e61dc40d Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2023-01-07 17:29:24 +01:00
Laurent Destailleur
9741d2d723 Debug virtual card 2023-01-07 17:00:39 +01:00
Laurent Destailleur
75d9793145 Fix virtual card feature 2023-01-07 14:34:30 +01:00
Laurent Destailleur
00740ca267 WIP Work on public virtual card 2023-01-07 04:42:24 +01:00
Laurent Destailleur
7218d8419f
Merge pull request #23434 from altairis-noe/too_much_br
FIX: do not add <br> when dol_concatdesc already does it
2023-01-07 03:38:57 +01:00
Laurent Destailleur
b3b0fe2444 Clean code 2023-01-06 20:12:58 +01:00
Noé Cendrier
10018d48a9 do not add <br> when dol_concatdesc already does it 2023-01-06 11:46:59 +01:00
Laurent Destailleur
761ca8ca43 Enhance select2 component to allow onrightofpage 2023-01-05 03:24:37 +01:00
Laurent Destailleur
43a0ccce2b Clean code 2023-01-04 11:37:24 +01:00
Laurent Destailleur
37528e6544 Add CRC to currency with symbol before amount 2023-01-04 09:43:26 +01:00
Laurent Destailleur
4ea81b4a96 Fix syntax error 2023-01-04 09:42:39 +01:00
Laurent Destailleur
23865e5a4b
Merge pull request #23325 from randallmoraes/patch-6
NEW Add CRC for currency symbol before amount
2023-01-04 08:35:39 +01:00
Laurent Destailleur
ee564ac3bb
Merge pull request #23391 from JavierNR/feature/intervention_url
NEW create email substitution variable __ONLINE_SIGN_FICHINTER_URL__
2023-01-04 08:22:14 +01:00
Laurent Destailleur
1e65d24293 Fix missing security check on payment 2023-01-03 19:33:46 +01:00
Laurent Destailleur
e67c37f3ba Fix missing security check on payment 2023-01-03 19:16:38 +01:00
Laurent Destailleur
85d91c82e8 Fix warning 2023-01-03 17:38:05 +01:00
Laurent Destailleur
fce5968510 Fix warning 2023-01-03 17:09:08 +01:00
Laurent Destailleur
e58d88c62a Fix warnings 2023-01-03 13:49:05 +01:00
Laurent Destailleur
cb13069fa1 Fix warnings 2023-01-03 13:47:34 +01:00
Laurent Destailleur
2dfb8c0496 Clean code 2023-01-02 20:26:46 +01:00
Laurent Destailleur
67144020c6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-02 20:24:13 +01:00
Laurent Destailleur
d62fb2af64 css 2023-01-02 20:15:34 +01:00
Javier Núñez
4ddf0b27dc NEW create email substitution variable for intervention signature URL 2023-01-02 18:15:33 +01:00
Laurent Destailleur
a7e8460e3c Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-02 16:46:48 +01:00
Laurent Destailleur
e77b980009 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2023-01-02 03:09:29 +01:00
Laurent Destailleur
f3bdecd111 Revert option ECM_AUTO_TREE_ENABLED into ECM_AUTO_TREE_HIDEN 2023-01-02 02:23:28 +01:00
Laurent Destailleur
81800034ae Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2023-01-02 00:46:54 +01:00
Laurent Destailleur
fc9a4df845
Merge pull request #23378 from Je2fb/develop
Fix issue #23345 and create an api for multicurrencies
2023-01-02 00:28:02 +01:00
Laurent Destailleur
2970f039dd Fix warning 2022-12-31 16:52:23 +01:00
Laurent Destailleur
65a2093cd1 Fix regression 2022-12-31 16:50:30 +01:00
Laurent Destailleur
7d433e43fa Add hooks on payment pages 2022-12-31 16:24:32 +01:00
Laurent Destailleur
e523c04ce7 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2022-12-31 14:25:11 +01:00
Laurent Destailleur
751f79b672 Debug v17 2022-12-31 14:21:16 +01:00
Laurent Destailleur
8774f4f092 Fix warning qodana 2022-12-31 13:44:11 +01:00
Francis Appels
cef9a8e8d4 Fix Price by qty for multiprices 2022-12-31 13:42:18 +01:00
Laurent Destailleur
e977a95cc7 Fix warning 2022-12-31 13:23:09 +01:00
Laurent Destailleur
41c3d9da05 Fix warning 2022-12-30 19:40:16 +01:00
Laurent Destailleur
c593d990e4 Clean deprecated code for adodbtime 2022-12-30 18:55:10 +01:00
Je2fb
ab0e069ae1
Update functions2.lib.php
Add the moduledirforclass "multicurrency" to add a API to get the currencies
2022-12-30 16:16:29 +01:00
Laurent Destailleur
24e3e278ed Fix warning 2022-12-30 14:24:39 +01:00
Laurent Destailleur
e8ea213503 Fix warning 2022-12-30 13:51:58 +01:00
Laurent Destailleur
9d777497db NEW dol_sort_array can sort on alphabetical order even if val is num 2022-12-29 22:07:26 +01:00
Laurent Destailleur
c886bad8b6 Fix warning 2022-12-28 17:00:28 +01:00
Laurent Destailleur
dbc5f5742f Clean code 2022-12-28 12:05:30 +01:00
Laurent Destailleur
5997b916d8 Enhance qodana rules 2022-12-28 03:50:19 +01:00
Laurent Destailleur
a4c1ae1b82 Fix permission 2022-12-27 11:54:11 +01:00
Laurent Destailleur
886baf6aa2 Fix permission 2022-12-27 01:41:20 +01:00
Laurent Destailleur
a863742eb5
Merge pull request #22841 from artemChernitsov/new-odt-abbility-to-supplier-invoices
NEW Add abbility of ODT support to supplier invoices
2022-12-27 00:33:25 +01:00