Laurent Destailleur
e2934a6b5f
Error message returned by old non "addreplace" hooks is propagated too
2019-02-08 19:38:52 +01:00
Frédéric FRANCE
b10558bacd
Merge remote-tracking branch 'upstream/develop' into nospaceaftercomma
2019-01-27 23:23:38 +01:00
Frédéric FRANCE
f0cdf300d1
Squiz.Functions.FunctionDeclarationArgumentSpacing
2019-01-27 15:20:16 +01:00
Frédéric FRANCE
7ee086b402
PSR2 space after comma in function call
2019-01-27 11:55:16 +01:00
Laurent Destailleur
8950720fb5
NEW Add getFormatedCustomerRef and getFormatedSupplierRef methods
2019-01-21 15:22:35 +01:00
Regis Houssin
569d59d251
FIX change my deprecated email
2018-10-27 14:43:12 +02:00
Frédéric FRANCE
6aee680a4f
PSR2 ClassDeclaration
2018-08-29 22:06:05 +02:00
Philippe GRAND
d91b1fd895
Update and standardize code
2018-08-22 11:06:34 +02:00
Philippe GRAND
a669830427
Update and standardize code
2018-08-22 10:37:16 +02:00
Laurent Destailleur
db3c17668e
Fix coding style
2018-08-21 19:08:11 +02:00
Philippe GRAND
c48211ad70
Update and standardize code
2018-08-17 19:31:22 +02:00
Laurent Destailleur
66f0ee9e18
Fix hack with hook to solve a problem to let a chance of external
...
modules to be visible to android webview.
2018-06-28 22:59:53 +02:00
Laurent Destailleur
56b80d81dd
Declare hook as addreplace hook
2018-05-10 11:39:29 +02:00
Laurent Destailleur
32ace6a8cf
NEW Add hook setContentSecurityPolicy
2018-04-30 15:17:38 +02:00
Laurent Destailleur
cca4b1cbf5
NEW Optimize load of hooks classes (save 1-5Kb of memory)
2018-04-21 11:24:45 +02:00
Laurent Destailleur
533de639ae
Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/core/class/hookmanager.class.php
2018-04-05 13:29:27 +02:00
Laurent Destailleur
2b135dc951
FIX #8488
2018-04-05 13:13:45 +02:00
Laurent Destailleur
575fc9f90d
NEW add hook moreHtmlStatus to complete to status on banners
2018-02-27 22:06:21 +01:00
Laurent Destailleur
833c7685e1
Hook 'maildao' was renamed into 'mail' into the method sendfile that
...
send emails, and method was renamed from 'doaction' into 'sendMail'.
To process task #4875 #7969 in several steps.
2018-02-03 17:36:33 +01:00
Laurent Destailleur
1af74b4c42
Merge branch '5.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
dev/skeletons/skeleton_list.php
htdocs/admin/perms.php
htdocs/core/class/commonobject.class.php
htdocs/core/class/hookmanager.class.php
htdocs/core/lib/files.lib.php
htdocs/product/class/product.class.php
htdocs/product/class/service.class.php
htdocs/product/index.php
htdocs/product/list.php
htdocs/public/members/new.php
htdocs/theme/eldy/style.css.php
htdocs/theme/md/style.css.php
2017-06-09 12:50:56 +02:00
Laurent Destailleur
929946ad47
Fix several problem with hook printFieldListWhere
2017-06-09 10:12:01 +02:00
Laurent Destailleur
a1144e1f66
Fix missing init of hookmanager
2017-06-08 11:18:41 +02:00
Laurent Destailleur
2510ec7015
Fix php error
2017-06-06 10:29:34 +02:00
Laurent Destailleur
22efbabfa6
NEW Add hook doUpgrade2
2017-06-06 01:34:25 +02:00
Laurent Destailleur
e1b19b831a
NEW An external module can hook and add mass actions
2017-06-02 23:57:37 +02:00
Laurent Destailleur
66420d0e80
Restore lost file and better generation of modules
2017-06-02 23:02:48 +02:00
BENKE Charlie
18799c3a7f
Changes Done
...
question
need to change $actionclassinstance->results in $actionclassinstance->resactionss ???
2017-05-29 11:00:08 +02:00
BENKE Charlie
e4f7f2a0b2
$resaction need in 5.0.x too
2017-05-26 12:39:49 +02:00
Laurent Destailleur
e8767122b0
Merge branch '5.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
ChangeLog
htdocs/societe/list.php
2017-04-03 11:05:19 +02:00
Laurent Destailleur
6a69f9349b
Fix too much logs in list
2017-04-03 10:43:04 +02:00
Laurent Destailleur
74e8fb9c19
NEW Can set number of dump to keep with job "local database backup"
2017-02-27 02:04:25 +01:00
BENKE Charlie
3f236b1ebf
FIX : $resaction not used in all case
...
Please integrate on next 5.0
2017-02-03 12:14:29 +01:00
Laurent Destailleur
5362d10c0d
Merge branch '5.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/core/class/hookmanager.class.php
2017-01-21 21:56:24 +01:00
Laurent Destailleur
b8a80f9311
Fix code comment and missing showLinkToObjectBlock hook declaration as
...
an addreplace hook.
2017-01-21 17:30:35 +01:00
Laurent Destailleur
5c233a41b3
NEW Add hook "formatNotificationMessage"
2017-01-09 23:55:53 +01:00
Laurent Destailleur
4bcc7dc8a0
CLOSE #4368 #4369 Add hook completeTabsHead for rewrite heads tabs menu
2016-11-12 14:36:52 +01:00
Laurent Destailleur
b85bb8c0f8
Merge remote-tracking branch 'origin/3.9' into 4.0
...
Conflicts:
htdocs/core/modules/facture/doc/pdf_crabe.modules.php
2016-07-29 16:24:02 +02:00
Marcos García de La Fuente
3029fd0fe1
FIX #5540 getFormMail is not registered as addReplace hook
2016-07-25 13:18:41 +02:00
Laurent Destailleur
fdfe4d9ac5
Fix missing getFormMail as "addreplace" hook
2016-07-15 14:21:07 +02:00
Laurent Destailleur
f756f3db0e
Fix hook context 'all'
2016-07-07 01:23:20 +02:00
Laurent Destailleur
c360189d94
Code comment
2016-07-06 11:14:17 +02:00
Laurent Destailleur
461f62c200
Use the new global search form
2016-05-05 13:29:42 +02:00
Scrutinizer Auto-Fixer
051ccf30a1
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-04-09 17:32:05 +00:00
Laurent Destailleur
4b4de22a54
NEW Add hook pdf_build_address
...
NEW Add option MAIN_PUBLIC_NOTE_IN_ADDRESS
2016-02-25 20:54:37 +01:00
Laurent Destailleur
2a345b6fc0
Merge remote-tracking branch 'origin/3.8' into develop
...
Conflicts:
htdocs/admin/company.php
htdocs/admin/menus/edit.php
htdocs/core/class/hookmanager.class.php
htdocs/core/class/html.form.class.php
htdocs/core/lib/pdf.lib.php
2015-11-21 12:48:41 +01:00
Marcos García de La Fuente
8e9e2911ae
FIX #3996 Dictionnary hooks are not working in 3.8
2015-11-16 13:18:25 +01:00
philippe grand
04238da75d
Typo
2015-11-05 14:16:13 +01:00
Alexis Algoud
e3a42a78f2
FIX all PDF hook must be in addreplace type, not return value to work as expected
2015-11-03 15:14:42 +01:00
Sergio Sanchis Climent
990fbf3ef4
hooks correctly implemented , printObjectLine, printObjectSubLine
...
In hook can change correctly label and ref (for my module need if is posible)
2015-10-26 14:00:43 +01:00
Laurent Destailleur
9f21ea58a3
A lot hooks used into PDF generation were not correctly implemented. We
...
had to fix this. The result si that
the following hook were set as hook of type "replace". This means if
your module implement such hooks, it must
return 0 to execute standard code or 1 to replace standard code (value
to output should be set into resPrints instead).
2015-10-22 17:51:05 +02:00
Raphaël Doursenaud
0d897a1307
NEW: log hooks loading
...
This will help debugging bad hooks behavior.
2015-07-20 18:30:49 +02:00
Laurent Destailleur
57a267a30f
NEW Add hooks to allow an external module to complete list of events
...
into calendar views.
2015-06-30 17:09:52 +02:00
Raphaël Doursenaud
d6e48670e7
Allow replacing the address block
...
Since ba2c0a2651 changed the default hook mode
from addreplace to output, this is needed to still be allowed to replace
the displayed address from a hook
2015-06-25 11:13:23 +02:00
Laurent Destailleur
65c7ab7a93
Fix: Introduce error by default when function is used as a true delete
...
function.
2015-05-29 17:11:42 +02:00
Laurent Destailleur
a93ba86ce0
Merge remote-tracking branch 'origin/3.7' into develop
...
Conflicts:
htdocs/commande/card.php
htdocs/compta/facture.php
htdocs/compta/facture/class/facture.class.php
htdocs/core/class/commonobject.class.php
htdocs/core/modules/expedition/modules_expedition.php
htdocs/core/modules/modContrat.class.php
htdocs/expedition/class/expedition.class.php
2015-05-07 13:35:09 +02:00
Laurent Destailleur
cc5968fbd5
A more complete error message
2015-05-07 10:45:35 +02:00
Laurent Destailleur
ae103e34b8
Merge remote-tracking branch 'origin/3.7' into develop
...
Conflicts:
build/debian/changelog
htdocs/compta/facture.php
htdocs/core/lib/price.lib.php
htdocs/install/mysql/migration/3.6.0-3.7.0.sql
htdocs/opensurvey/public/studs.php
htdocs/projet/element.php
2015-04-13 13:08:46 +02:00
Laurent Destailleur
1272b03e5e
Merge remote-tracking branch 'origin/3.6' into 3.7
...
Conflicts:
build/debian/changelog
htdocs/commande/fiche.php
htdocs/compta/facture.php
htdocs/core/menus/standard/eldy.lib.php
htdocs/fourn/facture/fiche.php
htdocs/product/stock/mouvement.php
htdocs/projet/element.php
htdocs/societe/rib.php
htdocs/theme/bureau2crea/img/statut4.png
2015-04-12 12:03:59 +02:00
Laurent Destailleur
fd8d09c8c0
Fix avoid warning
2015-03-29 17:53:05 +02:00
Laurent Destailleur
ba2c0a2651
Clean code of hooks.
...
Extrafield index on fk_object must be unique.
2015-03-13 20:27:54 +01:00
philippe grand
96e6c66365
better translation and typo
2015-01-01 11:24:00 +01:00
Laurent Destailleur
ef5035b349
Merge remote-tracking branch 'origin/3.6' into 3.7
...
Conflicts:
htdocs/core/class/commonobject.class.php
htdocs/product/liste.php
2014-12-18 11:42:55 +01:00
Laurent Destailleur
2c01a46774
Merge remote-tracking branch 'origin/3.5' into 3.6
...
Conflicts:
htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php
htdocs/paypal/lib/paypal.lib.php
2014-12-18 10:13:25 +01:00
Christophe Battarel
a1bba472a0
FIX: hook insertExtraFields must return a returnvalue (0,1,-1)
2014-12-12 11:57:20 +01:00
Laurent Destailleur
a2d23fd699
Fix: Error management of hook was duplicating errors.
2014-10-18 00:33:30 +02:00
Laurent Destailleur
bb852592e6
Fix: Restore broken feature. One hook = One call of function per module.
2014-10-05 04:49:46 +02:00
Laurent Destailleur
e7a9447d94
Add hook formatEvent and fix bug into per user view.
2014-10-03 15:58:08 +02:00
Regis Houssin
3d82f0965e
Fix: Try to filter by context, use the test with $currentcontext in
...
method for avoid to run twice (I have not found any other solution!)
2014-09-29 15:20:54 +02:00
Regis Houssin
c5a7dfbabb
Fix: Add current context for avoid method execution in bad context, you
...
can add this test in your method : eg if($currentcontext != 'formfile')
return;
2014-09-29 14:40:02 +02:00
Laurent Destailleur
e8b7c9c6bd
Fix: doxygen
2014-09-27 16:00:11 +02:00
Raphaël Doursenaud
f8f502d013
Removed closing php tag
...
http://php.net/manual/en/language.basic-syntax.phptags.php
2014-05-03 18:18:44 +02:00
Laurent Destailleur
ce34c01b9e
New: On page to enter supplier prices, if there is no supplier, add
...
direct link to create one.
Qual: The following hooks are now 'addreplace'
hooks: "formCreateThirdpartyOptions" so check that return value is 0 to
keep default standard behaviour after hook or 1 to disable default
standard behaviour.
2014-04-16 00:06:16 +02:00
Laurent Destailleur
8d916215cc
New: Add new hook function addMoreActionsButtons to allow a module to
...
add/replace action buttons into an element.
2014-01-24 12:51:01 +01:00
Laurent Destailleur
c147fc6016
Fix: checkstyle
...
Try phpcs into travis
2013-09-10 02:09:55 +02:00
Laurent Destailleur
ad6bd5047f
Add error log to warn when module does not match specifications.
2013-07-28 14:42:50 +02:00
Laurent Destailleur
ed52dd9636
New: A more responsive desgin for statistic box of home page
...
Qual: Hook for statistics now match specifications.
2013-07-19 15:29:40 +02:00
Laurent Destailleur
b5820315f9
Fix: Correct permissions on files
2013-07-13 10:34:19 +02:00
Laurent Destailleur
7ee23a9612
Merge pull request #1085 from csalvador/form_attach_new_file_hook
...
hook in form_attach_new_file(html.formfile.class.php)
2013-07-10 06:42:37 -07:00
Cédric Salvador
9619b09e37
rewriting to fit the new way to use hooks
2013-07-10 15:30:49 +02:00
Laurent Destailleur
f67e52f42a
Start to clean hook code
2013-07-09 21:40:45 +02:00
Laurent Destailleur
1bff25bf28
Start to clean hookmanager code.
2013-07-09 21:33:45 +02:00
Laurent Destailleur
93c71d00f7
Merge remote-tracking branch 'origin/3.4' into develop
...
Conflicts:
htdocs/comm/mailing/cibles.php
htdocs/core/class/hookmanager.class.php
2013-06-12 22:17:15 +02:00
Laurent Destailleur
a50cd7b698
Fix bug into script that fix CRLF into LF
2013-06-12 11:59:55 +02:00
Laurent Destailleur
897d1251c8
Fix: Better fix for cleaning vars (i'm tired today)
2013-06-11 12:10:02 +02:00
Laurent Destailleur
40cd45c166
Fix: Better fix for cleaning vars
2013-06-11 12:01:12 +02:00
Laurent Destailleur
8f3ba0dacc
Fix: Better fix for cleaning vars
2013-06-11 11:49:59 +02:00
Laurent Destailleur
4326bfb606
Merge remote-tracking branch 'origin/3.4' into develop
...
Conflicts:
htdocs/langs/tr_TR/admin.lang
htdocs/langs/tr_TR/agenda.lang
htdocs/langs/tr_TR/banks.lang
htdocs/langs/tr_TR/bills.lang
htdocs/langs/tr_TR/bookmarks.lang
htdocs/langs/tr_TR/boxes.lang
htdocs/langs/tr_TR/cashdesk.lang
htdocs/langs/tr_TR/categories.lang
htdocs/langs/tr_TR/commercial.lang
htdocs/langs/tr_TR/companies.lang
htdocs/langs/tr_TR/compta.lang
htdocs/langs/tr_TR/contracts.lang
htdocs/langs/tr_TR/deliveries.lang
htdocs/langs/tr_TR/dict.lang
htdocs/langs/tr_TR/donations.lang
htdocs/langs/tr_TR/ecm.lang
htdocs/langs/tr_TR/errors.lang
htdocs/langs/tr_TR/exports.lang
htdocs/langs/tr_TR/externalsite.lang
htdocs/langs/tr_TR/ftp.lang
htdocs/langs/tr_TR/help.lang
htdocs/langs/tr_TR/holiday.lang
htdocs/langs/tr_TR/install.lang
htdocs/langs/tr_TR/interventions.lang
htdocs/langs/tr_TR/languages.lang
htdocs/langs/tr_TR/ldap.lang
htdocs/langs/tr_TR/mailmanspip.lang
htdocs/langs/tr_TR/mails.lang
htdocs/langs/tr_TR/main.lang
htdocs/langs/tr_TR/margins.lang
htdocs/langs/tr_TR/members.lang
htdocs/langs/tr_TR/orders.lang
htdocs/langs/tr_TR/oscommerce.lang
htdocs/langs/tr_TR/other.lang
htdocs/langs/tr_TR/paybox.lang
htdocs/langs/tr_TR/paypal.lang
htdocs/langs/tr_TR/products.lang
htdocs/langs/tr_TR/projects.lang
htdocs/langs/tr_TR/propal.lang
htdocs/langs/tr_TR/sendings.lang
htdocs/langs/tr_TR/shop.lang
htdocs/langs/tr_TR/sms.lang
htdocs/langs/tr_TR/stocks.lang
htdocs/langs/tr_TR/suppliers.lang
htdocs/langs/tr_TR/trips.lang
htdocs/langs/tr_TR/users.lang
htdocs/langs/tr_TR/withdrawals.lang
htdocs/langs/tr_TR/workflow.lang
2013-06-11 10:43:36 +02:00
Laurent Destailleur
5f9f709a70
Fix: vars must be cleaned for next call
2013-06-11 10:21:28 +02:00
Regis Houssin
c9a71439b2
Fix: EOF
2013-06-05 16:24:32 +02:00
Laurent Destailleur
52952c6fce
Uniformize code for liste_array
...
Fix visibility of elements into product page (manage external users)
2013-04-27 15:08:35 +02:00
Laurent Destailleur
89ad634230
Merge remote-tracking branch 'origin/3.3' into develop
...
Conflicts:
htdocs/compta/facture/class/facture.class.php
htdocs/core/class/hookmanager.class.php
htdocs/langs/fr_FR/holiday.lang
2013-04-22 01:39:49 +02:00
unknown
8030b39536
fix : undefined variable
2013-04-19 19:45:06 +02:00
Laurent Destailleur
e5a945ba5b
Merge remote-tracking branch 'origin/3.3' into develop
...
Conflicts:
ChangeLog
htdocs/admin/propal.php
htdocs/compta/journal/purchasesjournal.php
htdocs/compta/journal/sellsjournal.php
htdocs/core/class/conf.class.php
htdocs/core/class/hookmanager.class.php
htdocs/core/lib/files.lib.php
htdocs/core/modules/mailings/contacts2.modules.php
htdocs/langs/ca_ES/admin.lang
htdocs/langs/en_US/admin.lang
htdocs/langs/es_ES/admin.lang
htdocs/langs/fr_FR/admin.lang
htdocs/public/demo/index.php
2013-04-14 01:46:33 +02:00
Laurent Destailleur
c9b3193c44
Fix: Hooks with version 3.4 must match specification defined here:
...
http://wiki.dolibarr.org/index.php/Hooks_system
So i try a better fix that implement correctly this. To have the
moveFileUpload trigger keeping dolibarr code, it must return 0.
2013-04-12 13:18:24 +02:00
Laurent Destailleur
b678183ff2
Log
2013-04-07 21:09:57 +02:00
Laurent Destailleur
a22d39adfb
Fix: Hook is a replaceadd hook.
2013-03-27 14:11:15 +01:00
Laurent Destailleur
0f1741a06b
New: hooks for pdf_writelinedesc now implement the rule to overwrite or
...
not default code (http://wiki.dolibarr.org/index.php/Hooks_system )
2013-03-09 15:05:09 +01:00
Regis Houssin
647cbb08fb
Fix: wrong EOL
2013-01-26 10:38:11 +01:00
Laurent Destailleur
a7d41d74e8
Merge remote-tracking branch 'origin/3.3' into develop
2013-01-23 18:09:05 +01:00
Laurent Destailleur
5f2af00397
Add logs to debug
2013-01-23 00:24:20 +01:00