add view submission link only for Pending submissions
authorKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Mon, 21 Aug 2023 20:27:52 +0000 (21:27 +0100)
committerKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Wed, 6 Dec 2023 00:23:33 +0000 (00:23 +0000)
ext/afform/core/CRM/Afform/DAO/AfformSubmission.php
ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml

index 4a9a953969f4e4091e804be6ebac61b24140f290..55c6f36e31b1f6088b483fae7c33ea131d624f50 100644 (file)
@@ -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
    *
index 70c12a67831b2334259b44eecd92551e18d8d297..24c7ea7d70b8b85f0ae4b4de7c454525509ac864 100644 (file)
@@ -7,7 +7,9 @@
   <comment>Recorded form submissions</comment>
   <title>FormBuilder Submission</title>
   <log>true</log>
-
+  <paths>
+    <view>[afform_name:url]#?sid=[id]</view>
+  </paths>
   <field>
     <name>id</name>
     <title>Form Submission ID</title>