Fixing resource properties form.

Partial fix to Claroline/claroline@315.