ECM app : fixing bugs 4344 and 5068

check out tracker.silverpeas.org for further information

Do not forget to check out PR on Silverpeas-Components...