Changeset 853 for trunk/grails-app/conf/BootStrapTemplates.groovy
- Timestamp:
- Aug 27, 2010, 4:27:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrapTemplates.groovy
r850 r853 493 493 ) 494 494 .addToFields(protocolField) 495 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}495 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 496 496 497 497 // fasting treatment template … … 509 509 ) 510 510 ) 511 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}511 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 512 512 513 513 // SamplingEvent templates … … 519 519 comment: 'You can upload a protocol here which describes the procedure which was used when carrying out the sampling event' 520 520 ) 521 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}521 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 522 522 523 523 // liver sampling event template … … 537 537 ) 538 538 ) 539 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}539 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 540 540 541 541 // blood sampling … … 555 555 ) 556 556 ) 557 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}557 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 558 558 559 559 // plant sample extraction event template … … 586 586 ) 587 587 ) 588 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}588 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 589 589 590 590 // plant sampling event template … … 627 627 ) 628 628 ) 629 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}629 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 630 630 631 631 … … 638 638 type: TemplateFieldType.STRING 639 639 ); 640 assayDescriptionField.with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}640 assayDescriptionField.with { if (!validate()) { errors.each { println it} } else save(flush:true)} 641 641 642 642 println ".adding clinical chemistry assay template" … … 647 647 ) 648 648 .addToFields(assayDescriptionField) 649 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}649 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 650 650 651 651 println ".adding metabolomics assay template" … … 669 669 ]) 670 670 ) 671 .with { if (!validate()) { errors.each { println it} } else save(flush:true) ()}671 .with { if (!validate()) { errors.each { println it} } else save(flush:true)} 672 672 } 673 673
Note: See TracChangeset
for help on using the changeset viewer.