This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Civi\Mixin\EntityTypesXmlV1; | |
class Loader { | |
private \CRM_Extension_MixInfo $mixInfo; | |
public function __construct(\CRM_Extension_MixInfo $mixInfo) { | |
$this->mixInfo = $mixInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Civi\Api4\Contribution; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('cowModule').factory('cowTrait', function() { | |
// Private function (not available to controller using this trait) | |
function getSound() { | |
return 'Moo'; | |
} | |
// Public properties & methods for use as a trait | |
return { | |
cows: 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Trait mixed into BAOs who support bulk-save operations | |
*/ | |
trait CRM_Core_BulkSaveTrait { | |
/** | |
* @param $params | |
* @return CRM_Core_DAO|NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/includes/utils.inc b/includes/utils.inc | |
index dc502c5..97757dc 100644 | |
--- a/includes/utils.inc | |
+++ b/includes/utils.inc | |
@@ -806,16 +806,6 @@ function wf_crm_get_fields($var = 'fields') { | |
'table' => 'group', | |
'expose_list' => TRUE, | |
); | |
- $tagsets = array('' => t('Tag(s)')) + CRM_Core_BAO_Tag::getTagSet('civicrm_contact'); | |
- foreach ($tagsets as $pid => $name) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get font awesome file icon class for specific MIME Type | |
* @see https://gist.github.com/guedressel/0daa170c0fde65ce5551 | |
* | |
*/ | |
function ($mime_type) { | |
// List of official MIME Types: http://www.iana.org/assignments/media-types/media-types.xhtml | |
$icon_classes = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# start at top directory if we're not already there | |
pushd "$(git rev-parse --show-toplevel)" > /dev/null | |
# run style checker | |
civilint | |
if [[ $? == 1 ]] | |
then | |
echo "PR aborted" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php | |
index ef7dff8..da06824 100644 | |
--- a/CRM/Core/BAO/Note.php | |
+++ b/CRM/Core/BAO/Note.php | |
@@ -574,4 +574,19 @@ WHERE participant.contact_id = %1 AND note.entity_table = 'civicr | |
m_participant' | |
} | |
} | |
+ /** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CRM/Core/CodeGen/Specification.php b/CRM/Core/CodeGen/Specification.php | |
index 86c211a..a6f417b 100644 | |
--- a/CRM/Core/CodeGen/Specification.php | |
+++ b/CRM/Core/CodeGen/Specification.php | |
@@ -416,6 +416,8 @@ class CRM_Core_CodeGen_Specification { | |
'callback', | |
// Path to options edit form | |
'optionEditPath', | |
+ // A simple list of options. I miss enum fields... | |
+ 'options', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/Common.js b/js/Common.js | |
index 6fa4589..abbea0c 100644 | |
--- a/js/Common.js | |
+++ b/js/Common.js | |
@@ -401,9 +401,6 @@ if (!CRM.vars) CRM.vars = {}; | |
// Defaults for single-selects | |
if ($el.is('select:not([multiple])')) { | |
settings.minimumResultsForSearch = 10; | |
- if ($('option:first', this).val() === '') { | |
- settings.placeholderOption = 'first'; |
NewerOlder