From e58670dff0d1b21a0c01b7bdbf31f03ec050bb8c Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Mon, 21 Aug 2023 21:27:52 +0100 Subject: [PATCH] add view submission link only for Pending submissions --- ext/afform/core/CRM/Afform/DAO/AfformSubmission.php | 11 ++++++++++- .../core/xml/schema/CRM/Afform/AfformSubmission.xml | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ext/afform/core/CRM/Afform/DAO/AfformSubmission.php b/ext/afform/core/CRM/Afform/DAO/AfformSubmission.php index 4a9a953969..55c6f36e31 100644 --- a/ext/afform/core/CRM/Afform/DAO/AfformSubmission.php +++ b/ext/afform/core/CRM/Afform/DAO/AfformSubmission.php @@ -6,7 +6,7 @@ * * Generated from org.civicrm.afform/xml/schema/CRM/Afform/AfformSubmission.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a617b263eb7f1a2fcb6fb259c62d6fba) + * (GenCodeChecksum:68e301b8eb1d4ca755e3eb3b614ee2ff) */ use CRM_Afform_ExtensionUtil as E; @@ -31,6 +31,15 @@ class CRM_Afform_DAO_AfformSubmission extends CRM_Core_DAO { */ public static $_log = TRUE; + /** + * Paths for accessing this entity in the UI. + * + * @var string[] + */ + protected static $_paths = [ + 'view' => '[afform_name:url]#?sid=[id]', + ]; + /** * Unique Submission ID * diff --git a/ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml b/ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml index 70c12a6783..24c7ea7d70 100644 --- a/ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml +++ b/ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml @@ -7,7 +7,9 @@ Recorded form submissions FormBuilder Submission true - + + [afform_name:url]#?sid=[id] + id Form Submission ID -- 2.25.1