FreeHealth / freehealth

Free and open source Electronic Health Record
https://freehealth.io
Other
44 stars 16 forks source link

scripts don't get executed if the form is not added manually #72

Open jeromecc opened 7 years ago

jeromecc commented 7 years ago

Reproduce:

A

  1. code a form with a script
  2. add form within the code of completeforms "central.xml"
  3. test: script not executed

    B

  4. add same form "manually" (after installation, no reference to the form in completeform/../ central.xml) anywhere in the tree form
  5. script gets executed

This bug is probably related to the fact that the form uuid ("name" tag of medform element in xml form, eg: "Subs::Tools::SOAP::WithBio") is not accessible when the form is installed through complete/../central.xml, but it becomes accessible when form added manually...