Fix categories bug

When using the string type,
$typeid == 1 matched all strings making other conditions ineffective.
Updated category fix

Categories ID can be passed as strings
PSR code formatting
Update fiche.php

Proyect selection was missing
Fix : bad sql request when linking resource to an element
Fix : missing actions for resource element
Fix : missing translations
Fix: list event view lost type event filter
Fix: list event view lost type event filter
Merge branch '3.6' of git@github.com:Dolibarr/dolibarr.git into 3.6
save code event
Save also code of event
Merge pull request #1815 from GPCsolutions/catbug

Fix categories bug
Merge pull request #1850 from braito4/patch-1

Update fiche.php
Merge pull request #1862 from FHenry/3.5

Fix: list event view lost type event filter
Merge pull request #1863 from FHenry/3.6

 Fix: list event view lost type event filter
Merge pull request #1857 from aternatik/resource-fix

Fixes for resource module
Fix: balance with td
Fix: balance with td
Payment VAT :: Add control on field required
Payment Salaries :: Add field required & control on it