diff --git a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml index 9a6cf459263e2b8d6983a27951f7670546510cbb..6acdd4f636a350b95db67acc7de0167061d10755 100644 --- a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml +++ b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml @@ -65,16 +65,10 @@ if len(result) != 1:\n return context.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n \n person = result[0]\n -#If any question, we can create directly the credential recovery\n -question_free_text = person.getDefaultCredentialQuestionQuestionFreeText()\n -question_title = person.getDefaultCredentialQuestionQuestionTitle()\n -if not (question_free_text or question_title):\n - return context.ERP5Site_newCredentialRecovery(reference=reference)\n -\n -return context.Base_redirect('ERP5Site_newCredentialRecoveryDialog', keep_items = \\\n -dict(default_credential_question_question_free_text=question_free_text,\n - default_credential_question_question_title=question_title,\n - reference=reference))\ +return context.Base_redirect(\'ERP5Site_newCredentialRecoveryDialog\', keep_items = \\\n +dict(default_credential_question_question_free_text=person.getDefaultCredentialQuestionQuestionFreeText(),\n + default_credential_question_question_title=person.getDefaultCredentialQuestionQuestionTitle(),\n + reference=reference))\n </string> </value> </item> <item> diff --git a/bt5/erp5_credential/bt/revision b/bt5/erp5_credential/bt/revision index d3824c2972160c3ca81e03083ae4d1f4a3342a48..f9c94c8318066ba562fd1ce1e14753071396ea54 100644 --- a/bt5/erp5_credential/bt/revision +++ b/bt5/erp5_credential/bt/revision @@ -1 +1 @@ -324 +325 \ No newline at end of file