Laurent Destailleur
1934a37676
Escape to avoid false positive, even if it should be useless.
2021-11-07 17:35:43 +01:00
Laurent Destailleur
dc1226b116
Fix #yogosha7508
2021-10-25 18:40:19 +02:00
Laurent Destailleur
6ad9eb8ef1
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/product/class/api_products.class.php
htdocs/recruitment/recruitmentcandidature_list.php
htdocs/recruitment/recruitmentjobposition_list.php
2021-10-24 00:02:15 +02:00
Laurent Destailleur
fc29aa7d3b
Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0
2021-10-23 23:58:00 +02:00
John BOTELLA
55cdb8ac6f
Fix numeric value
2021-10-23 01:00:24 +02:00
Frédéric FRANCE
46c4f28478
fix multiple warnings
2021-10-22 22:15:59 +02:00
Laurent Destailleur
6c870bb3d1
Merge pull request #19059 from FHenry/fix_introduced_scrutinizer
...
fix: scrutinizer
2021-10-21 22:52:20 +02:00
Florian HENRY
96722d55ef
fix scrutinzer
2021-10-21 19:13:05 +02:00
Florian HENRY
4795190a75
fix: scrutinizer
2021-10-21 17:09:48 +02:00
atm-lena
806c53d4c4
FIX Ret PR
2021-10-21 09:49:14 +02:00
Laurent Destailleur
9469c0dc2b
Update commonobject.class.php
2021-10-16 19:10:50 +02:00
Laurent Destailleur
bbe867a7a9
Update commonobject.class.php
2021-10-16 19:06:50 +02:00
Gauthier PC portable 024
5ef681ef91
FIX : stickler
2021-10-15 10:36:47 +02:00
Gauthier PC portable 024
412746ec8f
NEW : we need to be able to put more filters on deleteByParentField() function
2021-10-15 10:18:32 +02:00
atm-lena
ff7727466a
Function updateExtrafield : replace empty value to null
2021-10-14 17:13:44 +02:00
Laurent Destailleur
791a7206ee
Fix var not defined
2021-10-12 11:48:51 +02:00
Laurent Destailleur
f3c16ba490
Merge pull request #18905 from indelog/fix_origin_invoice_custom
...
Fix creataing invoice originating for custom module object
2021-10-11 15:26:07 +02:00
Indelog
94875cdc77
Fix : Re-add bloc to set $withtargettype and $withsourcetype
2021-10-11 13:37:37 +02:00
Laurent Destailleur
96b617cb4d
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/eventorganization/conferenceorboothattendee_card.php
htdocs/mrp/mo_list.php
2021-10-06 18:30:26 +02:00
Indelog
18fb3a352b
Add hook to overide sourcetype and targettype for linked object
...
This add hook `setLinkedObjectSourceTargetType` in
`CommonObject::showLinkToObjectBlock()` and in
`CommonObject::fetchObjectLinked()` to allow overiding sourcetype and
targettype by custom modules.
2021-10-06 17:18:45 +02:00
Laurent Destailleur
4be2d1414e
Fix regression
2021-10-06 14:03:10 +02:00
Indelog
45e6ea45dc
Fix stickler
2021-10-06 12:19:10 +02:00
Indelog
fb775e2c6e
Fix Add module part in llx_element_element on CommonObject::add_object_linked()
...
Add module part to target type if object has $module property and is'nt
in core modules.
2021-10-06 12:14:46 +02:00
Indelog
6c82b1d0e1
Fix creataing invoice originating for custom module
...
This fix the invoice create form when we provide `origin` element in
url. The actual create form overide the value for origin field with
`$objectsrc->element`. This make creation of invoice originating from a custom
module module impossible because we need the module part to instantiate
the class for the custom module object.
This also modify Common Object::fetch Object Linked() to append the
module part for `$sourcetype` and `$targettype` if it not set and object
have module property and it not in core module.
2021-10-05 11:35:43 +02:00
Alexandre SPANGARO
edf91ce77c
HTML5 - <font> tag is deprecated, replace by <span>
2021-10-05 09:41:03 +02:00
Laurent Destailleur
d064ab2b17
Add more action to GET action to check
2021-10-02 12:58:15 +02:00
Laurent Destailleur
673a2982a5
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/opensurvey/card.php
2021-09-30 16:32:40 +02:00
Laurent Destailleur
3d4bb66853
Clean code
2021-09-30 15:59:47 +02:00
Laurent Destailleur
608b6f5fa3
Clean code
2021-09-30 15:24:57 +02:00
Laurent Destailleur
3565a47954
Merge branch 'develop' into NEW_develop_virtual_product_DragAndDrop
2021-09-30 14:24:30 +02:00
Laurent Destailleur
98d8bad955
Merge pull request #18843 from indelog/fix_ecm_deletion
...
Fix append module suffix on src_object_type when create ecm file
2021-09-30 13:32:42 +02:00
Regis Houssin
6e08ecde04
FIX indentation
2021-09-29 08:47:22 +02:00
Regis Houssin
43a47999d7
FIX avoid warning if $categories is an id
2021-09-28 16:35:01 +02:00
Indelog
5b8b55cfba
Fix append module suffix on src_object_type when create ecm file
...
Files added to `llx_ecm_files` for externals modules never be removed on
object deletion.
When `CommonObject::deleteEcmFiles()` is called with `mode=1`, it use
this sql filter to find the file related to the object which is removed
:
```
$sql .= " WHERE fk_object IN (SELECT rowid FROM ".MAIN_DB_PREFIX."ecm_files WHERE src_object_type = '".$this->db->escape($this->table_element.(empty($this->module) ? '' : '@'.$this->module))."' AND src_object_id = ".((int) $this->id).")";
```
We see it append `'@'.$this->module` to `$this->table_element` but when
file is add to the `llx_ecm_files` by
`CommonObject::commonGenerateDocument()` , it added whiteout the
`'@'.$this->module` suffix. So the file is never remove from
`llx_ecm_files` when object is deleted.
This fix it by appending module suffix on `src_object_type` if object
has `module` property when add document to the `llx_ecm_files`.
2021-09-28 15:26:08 +02:00
Laurent Destailleur
d38c3028eb
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/expensereport/class/expensereport.class.php
2021-09-23 02:41:53 +02:00
Laurent Destailleur
2824c8b8ab
FIX support of localtax on expense report
2021-09-22 15:11:18 +02:00
Laurent Destailleur
deb1965cd5
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/comm/action/card.php
htdocs/compta/paiement/list.php
htdocs/core/class/commonobject.class.php
htdocs/mrp/mo_list.php
htdocs/projet/tasks/task.php
htdocs/public/payment/newpayment.php
2021-09-20 17:15:12 +02:00
Laurent Destailleur
c75fbb7642
FIX fetch of product with modulebuilder load too much data
2021-09-20 16:00:11 +02:00
Laurent Destailleur
0749d01c5a
Fix add action delete* as sensitive action
2021-09-18 22:04:41 +02:00
Laurent Destailleur
052511d081
Fix sql error
2021-09-18 15:05:31 +02:00
Laurent Destailleur
5fa62f25fa
Fix registration of attendee
2021-09-18 12:39:26 +02:00
Florian HENRY
47efccad75
remove debug
2021-09-16 17:13:34 +02:00
Florian HENRY
820a007731
NEW: add MRP into Object Linked Box
2021-09-16 17:10:06 +02:00
Laurent Destailleur
402757bdfe
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
2021-09-09 14:41:51 +02:00
Laurent Destailleur
cbe08183ac
Merge pull request #18648 from atm-gauthier/NEW_mass_delete_objects
...
NEW : mass action delete, no more break if at least one object has child
2021-09-09 14:38:49 +02:00
Laurent Destailleur
7eba2f6f39
Code comment
2021-09-09 14:32:59 +02:00
Laurent Destailleur
57a2ea3a53
Fix sql error
2021-09-08 19:49:24 +02:00
Laurent Destailleur
405beb77f5
Fix sql error
2021-09-08 19:45:55 +02:00
Laurent Destailleur
3cc888f4df
Debug event module
2021-09-07 23:19:36 +02:00
Laurent Destailleur
3df005778c
Debug event module
2021-09-07 19:48:32 +02:00