Skip to content

Instantly share code, notes, and snippets.

Avatar

Jitendra Purohit jitendrapurohit

View GitHub Profile
View blazy_multisite.diff
diff --git a/src/BlazyAlter.php b/src/BlazyAlter.php
index e764945..86c1821 100644
--- a/src/BlazyAlter.php
+++ b/src/BlazyAlter.php
@@ -148,7 +148,7 @@ class BlazyAlter {
*/
public static function ckeditorCssAlter(array &$css, Editor $editor): void {
if (self::isCkeditorApplicable($editor)) {
- $path = Blazy::getPath('module', 'blazy', TRUE);
+ $path = Blazy::getPath('module', 'blazy');
View webform_submission_offsite_payment.diff
diff --git a/src/Plugin/WebformHandler/CivicrmWebformHandler.php b/src/Plugin/WebformHandler/CivicrmWebformHandler.php
index c410e90..ad56b0c 100644
--- a/src/Plugin/WebformHandler/CivicrmWebformHandler.php
+++ b/src/Plugin/WebformHandler/CivicrmWebformHandler.php
@@ -142,11 +142,11 @@ class CivicrmWebformHandler extends WebformHandlerBase {
/**
* {@inheritdoc}
*/
- public function postSave(WebformSubmissionInterface $webform_submission, $update = TRUE) {
- $this->civicrm->initialize();
@jitendrapurohit
jitendrapurohit / D7WebformCiviCRM.php
Last active Dec 8, 2021
Webform CiviCRM migration from D7 to D9
View D7WebformCiviCRM.php
<?php
namespace Drupal\webform_migrate\Plugin\migrate\source\d7;
use Drupal\migrate\Event\ImportAwareInterface;
use Drupal\migrate\Event\RollbackAwareInterface;
use Drupal\migrate\Event\MigrateImportEvent;
use Drupal\migrate\Event\MigrateRollbackEvent;
use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
View webform_contact_element.yml
uuid: 8a2e3ab8-d974-41de-a64e-f799a245a6da
langcode: en
status: open
dependencies:
module:
- webform_civicrm
open: null
close: null
weight: 0
uid: 1
View public_group_on_webform.patch
diff --git a/src/AdminForm.php b/src/AdminForm.php
index 8988231..e7cbefe 100644
--- a/src/AdminForm.php
+++ b/src/AdminForm.php
@@ -1279,10 +1279,13 @@ class AdminForm implements AdminFormInterface {
'#group' => 'webform_civicrm',
'#title' => t('Additional Options'),
'#attributes' => array('class' => array('civi-icon-prefs')),
- '#description' => '<p>' .
- t('To have this form auto-filled for anonymous users, enable the "Existing Contact" field for :contact and send the following link from CiviMail:', array(':contact' => $utils->wf_crm_contact_label(1, $this->data, TRUE))) .
View update_recur.diff
diff --git a/CRM/Contribute/Form/UpdateSubscription.php b/CRM/Contribute/Form/UpdateSubscription.php
index 0e50b0383c..8f4ef3921f 100644
--- a/CRM/Contribute/Form/UpdateSubscription.php
+++ b/CRM/Contribute/Form/UpdateSubscription.php
@@ -132,6 +132,8 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Contribute_Form_Contrib
}
$this->assign('editableScheduleFields', array_diff($this->editableScheduleFields, $alreadyHardCodedFields));
+ $this->assign('frequency_unit', $this->_subscriptionDetails->frequency_unit);
+ $this->assign('frequency_interval', $this->_subscriptionDetails->frequency_interval);
View fz14.patch
diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php
index 8f7cd076b8..2eb50d4e5c 100644
--- a/CRM/Activity/BAO/Query.php
+++ b/CRM/Activity/BAO/Query.php
@@ -212,7 +212,7 @@ class CRM_Activity_BAO_Query {
$qillName = $name;
if (in_array($name, ['activity_engagement_level', 'activity_id'])) {
- $name = $qillName = str_replace('activity_', '', $name);
+ $name = str_replace('activity_', '', $name);
View survey-create-missing.diff
diff --git a/sites/all/modules/surveyactions/surveyactions.drush.inc b/sites/all/modules/surveyactions/surveyactions.drush.inc
index 94df4b12..6a357347 100644
--- a/sites/all/modules/surveyactions/surveyactions.drush.inc
+++ b/sites/all/modules/surveyactions/surveyactions.drush.inc
@@ -341,6 +341,7 @@ function _surveyactions_create_survey($title) {
return $survey;
}
else {
+ return $survey;
echo "\n survey " . $surveyParams['title'] . " already exists \n";
View webform_radio_issue.drupal
array(
(object) array(
'vid' => '4',
'uid' => '1',
'title' => 'Select/Radio field Conditionals test',
'log' => '',
'status' => '0',
'comment' => '1',
'promote' => '0',
'sticky' => '0',
View outlook_headers
[headers:ezcMailPart:private] => ezcMailHeadersHolder Object
(
[lookup:ezcMailHeadersHolder:private] => Array
(
[received] => Received
[from] => From
[to] => To
[subject] => Subject
[thread-topic] => Thread-Topic
[thread-index] => Thread-Index