Change URL for edit/create/delete SMS provider to support Searchkit admin ui over...
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 5 Dec 2023 23:49:21 +0000 (23:49 +0000)
committerPradeep Nayak <pradpnayak@gmail.com>
Wed, 6 Dec 2023 00:14:40 +0000 (00:14 +0000)
CRM/Core/xml/Menu/Admin.xml
CRM/SMS/DAO/Provider.php
CRM/SMS/Form/Provider.php
xml/schema/SMS/Provider.xml

index 93ecf394771907bec5eef2680783efc812d85b72..419f08166fdd72ffb4643422969555fe8b3833ea 100644 (file)
      <adminGroup>System Settings</adminGroup>
      <weight>500</weight>
   </item>
-    <item>
+  <item>
+     <path>civicrm/admin/sms/provider/edit</path>
+     <title>Sms Providers</title>
+     <desc>To configure a sms provider</desc>
+     <page_callback>CRM_SMS_Form_Provider</page_callback>
+     <access_arguments>administer CiviCRM</access_arguments>
+     <adminGroup>System Settings</adminGroup>
+     <weight>501</weight>
+  </item>
+  <item>
      <path>civicrm/sms/send</path>
      <title>New Mass SMS</title>
      <page_callback>CRM_SMS_Controller_Send</page_callback>
index 3be708e169a00e72fa064c6175a8fcd6d8d929fc..5225f0590bc4f6ac8db072bd1f5426ba1ab666e1 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/SMS/Provider.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:ea1cbd7f1f11e5665fff00358476e535)
+ * (GenCodeChecksum:2d570203bb9be927ba5276f3c2043d45)
  */
 
 /**
@@ -43,9 +43,10 @@ class CRM_SMS_DAO_Provider extends CRM_Core_DAO {
    * @var string[]
    */
   protected static $_paths = [
-    'add' => 'civicrm/admin/sms/provider?reset=1&action=add',
-    'delete' => 'civicrm/admin/sms/provider?reset=1&action=delete&id=[id]',
-    'update' => 'civicrm/admin/sms/provider?reset=1&action=update&id=[id]',
+    'add' => 'civicrm/admin/sms/provider/edit?reset=1&action=add',
+    'delete' => 'civicrm/admin/sms/provider/edit?reset=1&action=delete&id=[id]',
+    'update' => 'civicrm/admin/sms/provider/edit?reset=1&action=update&id=[id]',
+    'browse' => 'civicrm/admin/sms/provider?reset=1',
   ];
 
   /**
index 602f0e68475dfdec6e5f9553a8e6912e57406c48..baa9b86791ecfa660fce8c36dcb4b9372048ef53 100644 (file)
@@ -28,7 +28,7 @@ class CRM_SMS_Form_Provider extends CRM_Core_Form {
 
   public function preProcess() {
 
-    $this->_id = $this->get('id');
+    $this->_id = CRM_Utils_Request::retrieve('id', 'Integer', $this);
 
     $this->setPageTitle(ts('SMS Provider'));
 
index ad9e39f81a31633932e3c67fbfeae9b8bd219ec9..c9df774a45be88252f2a55f4effee983a2627611 100644 (file)
@@ -7,9 +7,10 @@
   <comment>Table to add different sms providers </comment>
   <add>4.2</add>
   <paths>
-    <add>civicrm/admin/sms/provider?reset=1&amp;action=add</add>
-    <delete>civicrm/admin/sms/provider?reset=1&amp;action=delete&amp;id=[id]</delete>
-    <update>civicrm/admin/sms/provider?reset=1&amp;action=update&amp;id=[id]</update>
+    <add>civicrm/admin/sms/provider/edit?reset=1&amp;action=add</add>
+    <delete>civicrm/admin/sms/provider/edit?reset=1&amp;action=delete&amp;id=[id]</delete>
+    <update>civicrm/admin/sms/provider/edit?reset=1&amp;action=update&amp;id=[id]</update>
+    <browse>civicrm/admin/sms/provider?reset=1</browse>
   </paths>
   <title>SMS Provider</title>
   <field>