From eb97c262cd74388d58b81a800dfe543fa3f431ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Wed, 20 Jul 2011 16:32:19 +0200 Subject: [PATCH] Require terms only in case if contract is present. --- .../your_term_confirmation.xml | 19 +++++++++++++++++-- bt5/erp5_credential/bt/revision | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_viewCredentialRequestForm/your_term_confirmation.xml b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_viewCredentialRequestForm/your_term_confirmation.xml index d15a347bfa..ff891ad98a 100644 --- a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_viewCredentialRequestForm/your_term_confirmation.xml +++ b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_viewCredentialRequestForm/your_term_confirmation.xml @@ -94,7 +94,9 @@ </item> <item> <key> <string>enabled</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>external_validator</string> </key> @@ -146,7 +148,7 @@ <item> <key> <string>external_validator</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> <item> @@ -168,6 +170,19 @@ </pickle> </record> <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: context.portal_preferences.getPreferredCredentialContractDocumentReference()</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <global name="Method" module="Products.Formulator.MethodField"/> </pickle> diff --git a/bt5/erp5_credential/bt/revision b/bt5/erp5_credential/bt/revision index 3456e74000..2291c046ea 100644 --- a/bt5/erp5_credential/bt/revision +++ b/bt5/erp5_credential/bt/revision @@ -1 +1 @@ -372 \ No newline at end of file +373 \ No newline at end of file -- 2.30.9