Commit Graph

37795 Commits

Author SHA1 Message Date
MaximilienR-easya
89a1e74df3 Force usage of another authentication when there is only openid_connect since he doesn't work for api, ws, and cdav login (#30777) 2024-08-29 09:20:02 +02:00
MDW
e6630cd7d1 Qual: Improve dol_syslog (#30782)
* Qual: 🛟 Fix reference to $db with $this->db

# Qual: reference to $db with $this->db

$db was undeclared, use $this->db.

* Fix suspected issue with environment max size and md5sum working on limited files

* Qual: Fix LDAP typing

* Qual: Improve dol_syslog

# Qual: Improve dol_syslog

The changes:
- Keep the log file open for less time (better for concurrency);
- Open the log file only to append data (no internal preparation for writing);
- Avoids re-assigning a constant array;
- Add PHPDoc information about the array parameters and return values;
- May reduce the computation of global settings;
- Result in a slight performance improvement.
2024-08-29 08:49:27 +02:00
Laurent Destailleur
5a0ec754d8 Fix regression __ID__ lost into backtopage urls 2024-08-28 23:49:53 +02:00
Laurent Destailleur
ba16a13a89 export inventory 2024-08-28 22:01:07 +02:00
Laurent Destailleur
b3c28155b7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-28 19:13:48 +02:00
Laurent Destailleur
56728677fa Debug v20 2024-08-28 19:12:14 +02:00
Laurent Destailleur
8232a5cdad Clean code 2024-08-28 18:50:33 +02:00
Laurent Destailleur
8958aed2ef Fix cursor 2024-08-28 03:30:06 +02:00
Laurent Destailleur
3392ddf42e Fix spellcheck 2024-08-27 22:24:32 +02:00
Laurent Destailleur
c0be147c02 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-27 20:01:25 +02:00
Laurent Destailleur
e783a2da16 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-08-27 19:41:25 +02:00
Laurent Destailleur
f07ebe0065 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-27 07:08:56 +02:00
William Mead
30805c68da NEW intervention signed status update (#30629)
* Added confirm_sign, confirm_unsign, sign & unsign actions. Added sign-unsign button.

* Updated create & fetch methods with signed_status

* Added EN localization

* Added intervention signed notification

* Added intervention signed auto event. Updated EN localization. Fixed trigger.

* Cleaned code

* Added signed label to status badge

* Cleaned code

* Added signed statues dictionary. Added method to get signed status label badge.

* Added signed status to intervention list

* Added sign localizations

* Added sign confirm select. Refactored signed statuses dictionary.

* Added method to get localized signed statuses arrray. Refactored code. Added EN localization.

* Fixed signed status update

* Cleaned code

* Updated EN localization

* Cleaned code

* Changed sign workflow to exclude only drafts

* Added signed status change with online sign

* Improved signed status workflow

* Removed db structure changes

* Updated action trigger to FICHINTER_MODIFY

* Updated EN localizations

* Refactored to use FICHINTER_MODIFY trigger with localized context message. Added STATUS_SIGNED_RECEIVER_ONLINE signed status. Updated EN localizations.

* Added STATUS_SIGNED_RECEIVER_ONLINE signed status. Cleaned Ecode.

* Fixed undeclared constant

* Added contributor details

* Updated notification logic to use object context to pass signature status

* Refactored to make use of object context for event notification. Cleaned code.

* Fixed deprecated method

* Cleaned code
2024-08-27 07:01:03 +02:00
William Mead
ded9d09c00 LDAP fixes for php8.1+ (#30725)
* Log LDAP error information only on debug. Added unbind condition. Added contributor details.

* Refactored unbind for PHP 8.1+. Refactored connect_bind for PHP 8.3+. Cleaned code.

* Cleaned code

* Refactored error management
2024-08-27 06:34:08 +02:00
Laurent Destailleur
dcfaae3bd5 Clean code: fight against global vars 2024-08-27 06:20:04 +02:00
Francis Appels
a8ddeff35c Fix some php warning (#30753)
* Fix php warning on send email

* Fix php warning on getTotalWeightVolume when no lines.

* Fix totalOrdered totalToShip should be int
2024-08-27 04:52:47 +02:00
MDW
f5c7ca1769 Qual: Fix PhanPluginUnknownObjectMethodCall in classes with high occurence (#30754)
* Qual: Fix PhanPluginUnknownObjectMethodCall in import.php

* Qual: PHPDoc for import/export array types

* Qual: Add PHPDoc types to import.class.php

* Fix PhanPluginUnknownObjectMethodCall in stats.class.php

* Add methods expected on ModeleImport child classes

* Force imapemail type for phan

* Qual: Update phan baseline

* Qual: Fix Undefined/Undeclared phan notices in module_help

* Update baseline
2024-08-27 04:51:41 +02:00
Laurent Destailleur
03ffbd3099 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-27 04:47:33 +02:00
Laurent Destailleur
c03617d5b7 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-08-27 04:46:30 +02:00
Laurent Destailleur
f29f11d4fb Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-27 03:57:39 +02:00
Laurent Destailleur
26411e3d52 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-08-27 03:31:09 +02:00
Laurent Destailleur
93e8d2baba FIX #30762 2024-08-27 03:30:24 +02:00
Laurent Destailleur
ce7f038a90 Fix mime for xz 2024-08-26 22:11:16 +02:00
Laurent Destailleur
0feb44cd9e Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-26 21:09:21 +02:00
Laurent Destailleur
7778bc4b01 Fix switch page status. Fix clone page. 2024-08-26 20:51:42 +02:00
Laurent Destailleur
906063496c Sync transifex 2024-08-26 15:54:35 +02:00
Laurent Destailleur
ebca595b7d Fix: disable spellcheck on input url 2024-08-26 15:33:48 +02:00
Laurent Destailleur
3a80cf4033 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-24 14:26:09 +02:00
Laurent Destailleur
f307d28c12 Fix some warnings 2024-08-24 14:25:51 +02:00
Laurent Destailleur
1bfecb5e3b Fix phan errors (dolibarr_set_const can accept int) 2024-08-24 14:19:59 +02:00
lamrani abdelwadoud
ca26bc5b8a New dislay for listing events of invoic supplier (#30714)
* New dislay for listing events of invoic supplier

* Fix phpstan errors

* Fix active tab and refSupplier in agenda file

* Fix whitespace and brackets
2024-08-24 13:41:20 +02:00
Frédéric FRANCE
5f92aaee7e replace relatives url (#30719) 2024-08-23 15:28:41 +02:00
hansemschnokeloch
4849e04fc9 Fix #29292 (#30720)
* fix #2810

* Fix #29292
2024-08-23 15:27:55 +02:00
hansemschnokeloch
cfb44ce196 Fix #29292 (#30720)
* fix #2810

* Fix #29292
2024-08-23 15:27:10 +02:00
Lucas Marcouiller
6d1d41bb9d Fix inventory export profile (#30721)
* Fix inventory export profile

* fix CI

---------

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-08-23 15:24:40 +02:00
jyhere
f551a1e34e FIX: Possible warnings in WorkflowManager (#30737)
Possible warnings if $object->fetchObjectLinked() is called earlier (e.g by an external module)
2024-08-23 15:05:34 +02:00
Laurent Destailleur
a59e933d59 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-22 14:47:00 +02:00
Laurent Destailleur
e631ce7475 Fix sanitizing dol_openinpopup 2024-08-22 14:46:10 +02:00
noec764
18bf0c940e FIX: Dolibarrize DolibarrModules::insert_cronjobs() method (#24747)
* FIX: Dolibarrize DolibarrModules::insert_cronjobs() method

* Fixing style errors.

* Update DolibarrModules.class.php

---------

Co-authored-by: stickler-ci <support@stickler-ci.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-22 13:23:42 +02:00
Laurent Destailleur
f12d501f16 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-22 12:34:00 +02:00
Laurent Destailleur
ecc5f90574 Fix init cron when priority is not set. 2024-08-22 04:05:25 +02:00
thibdrev
3dbd79dad8 qual: Method getKanbanView() has parameter $arraydata with no value type specified in iterable type array. (#30712)
* Update adherent.class.php

* Update adherent_type.class.php

* Update availabilities.class.php

* Update propal.class.php

* Update account.class.php

* Update paymentvarious.class.php

* Update cashcontrol.class.php

* Update localtax.class.php

* Update remisecheque.class.php

* Update bonprelevement.class.php

* Update chargesociales.class.php

* Update contact.class.php

* Update contrat.class.php

* Update commonorder.class.php

* Update timespent.class.php

* Update don.class.php

* Update conferenceorbooth.class.php

* Update expedition.class.php

* Update expensereport.class.php

* Update paymentexpensereport.class.php

* Update fichinter.class.php

* Update fournisseur.commande.class.php

* Update holiday.class.php

* Update evaluation.class.php

* Update job.class.php

* Update position.class.php

* Update skill.class.php

* Update intracommreport.class.php

* Update knowledgerecord.class.php

* Update loan.class.php

* Update mo.class.php

* Update partnership.class.php

* Update inventory.class.php

* Update entrepot.class.php

* Update project.class.php

* Update holiday.class.php - fix phan error

* Update task.class.php

* Update reception.class.php

* Update recruitmentcandidature.class.php

* Update recruitmentjobposition.class.php

* Update paymentsalary.class.php

* Update salary.class.php

* Update supplier_proposal.class.php

* Update ticket.class.php

* Update user.class.php

* Update usergroup.class.php

* Update webportalinvoice.class.php

* Update webportalorder.class.php

* Update webportalpropal.class.php

* Update workstation.class.php

* Update facture.class.php
2024-08-22 03:31:04 +02:00
lamrani abdelwadoud
cc8e1cd81e New display for listing events (#30713)
* New display for listing invoice events

* Fix phpstan errors
2024-08-22 03:30:27 +02:00
Laurent Destailleur
5797a0db3f Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-22 02:54:55 +02:00
Laurent Destailleur
fee2185170 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-08-22 02:52:27 +02:00
Mohamed DAOUD
f4417e502e allow links and scripts on website htmlheader (#30708) 2024-08-21 14:10:09 +02:00
Frédéric FRANCE
f0cf4ddba0 fix cast (#30696)
* fix cast

* Update extrafields_list_print_fields.tpl.php
2024-08-21 13:24:49 +02:00
MDW
ca414de526 Qual: Fix $fields related notices with Phan (#30704)
* Qual: Typing hints/ignore directives for phan notices

* Update field typing
2024-08-21 13:23:35 +02:00
HENRY Florian
cb636e217a fix: catch error extrafields delete (#30522)
* fix: return error when extrafield DDLDropField failed

* fix: return error when delete extrafield failed

* fix: VAT is already calculted if not post (#30683)
2024-08-21 13:06:22 +02:00
Laurent Destailleur
955876b785 Rename param 2024-08-21 02:51:33 +02:00