Fix categories bug

When using the string type,
$typeid == 1 matched all strings making other conditions ineffective.
Fix #1544: Can remove date from invoice
Updated category fix

Categories ID can be passed as strings
PSR code formatting
Fix : VAT and NPR rates where coming from multiprice...
Merge branch '3.5' of github.com:Dolibarr/dolibarr into 3.5
Fix: Minimum size for captcha
Fix: broken feature: add param for use only "disabled" with delConstant
and "enabled" with setConstant
Merge pull request #1828 from atm-maxime/3.5

Fix : VAT and NPR rates where coming from multiprice...
Fix: backlink was wrong after deleting product or service.
Fix: define new ref before trigger
The "final ref" of an object must be set only once all database actions
are ok. So after trigger call.
If a trigger need to know new information on an object, trigger must
make a fetch on object.

Revert "Fix: define new ref before trigger"

This reverts commit cb2b6e6e40035b28cb241681efda8ec6f97eaf80.
Fix :: Sql problem for fresh install on resource table // Ok in migration script
Merge branch 'Upstream/3.6'
Fix :: Entries salaries into menu doesn't appears when this module is activated alone - Needed module tax at the moment
Fix: Pb with focus position with ckeditor
Fix: menu param is not inside allowed list
Merge branch '3.6' of git@github.com:Dolibarr/dolibarr.git into 3.6
Merge pull request #1839 from aspangaro/3.6

Fix :: Sql problem for fresh install on resource table
Merge branch 'fix_1544' of github.com:KreizIT/dolibarr into
KreizIT-fix_1544

Conflicts:
	ChangeLog
Merge branch 'KreizIT-fix_1544' into 3.5