Skip to content

Commit

Permalink
Merge branch 'hotfix' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Jul 4, 2024
2 parents 9e0191b + 01adea9 commit 658754c
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CRM/Activity/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ static function whereClauseSingle(&$values, &$query) {
$query->_qill[$grouping][] = ts('Activity Tag %1', array(1 => $op)) . ' ' . CRM_Utils_Array::implode(' ' . ts('OR') . ' ', $names);
$query->_tables['civicrm_activity_tag'] = $query->_whereTables['civicrm_activity_tag'] = 1;
break;

case 'parent_id':
$query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_activity.parent_id", $op, $value, "Integer");
$query->_qill[$grouping][] = ts('Task Parent') . ' = ' . $value;
break;
}
}

Expand Down
3 changes: 3 additions & 0 deletions CRM/Activity/Form/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,9 @@ public function postProcess($params = NULL) {
CRM_Core_Session::setStatus(ts("Selected Activity has been deleted sucessfully."));
return;
}
if ($this->_action & CRM_Core_Action::VIEW) {
return;
}

// store the submitted values in an array
if (!$params) {
Expand Down
19 changes: 19 additions & 0 deletions CRM/Activity/Page/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,25 @@ function run() {
if (in_array($activityTypeId, array($emailTypeValue, $letterTypeValue, $SMSTypeValue))) {
return;
}

// add children activity search result
if ($this->_action & CRM_Core_Action::VIEW) {
$sortID = NULL;
$filter = array(
'parent_id' => $this->_id,
);
$queryParams = CRM_Contact_BAO_Query::convertFormValues($filter);
$selector = new CRM_Activity_Selector_Search($queryParams, $this->_action);
$controller2 = new CRM_Core_Selector_Controller($selector,
$this->get(CRM_Utils_Pager::PAGE_ID),
$sortID,
CRM_Core_Action::VIEW,
$this,
CRM_Core_Selector_Controller::TRANSFER
);
$controller2->setEmbedded(TRUE);
$controller2->run();
}
}
elseif ($this->_action & (CRM_Core_Action::DELETE | CRM_Core_Action::DETACH)) {
$this->delete();
Expand Down
1 change: 1 addition & 0 deletions CRM/Contact/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,7 @@ function whereClauseSingle(&$values) {
case 'activity_engagement_level':
case 'activity_id':
case 'activity_record_id':
case 'parent_id':
CRM_Activity_BAO_Query::whereClauseSingle($values, $this);
return;

Expand Down
2 changes: 1 addition & 1 deletion js/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ function mdFormElement(type, label, attr){
var id;
for(i in attr) {
if(type == 'select' && i == 'values') {
opt = values;
opt = attr[i];
continue;
}
if(i == 'class') {
Expand Down
5 changes: 4 additions & 1 deletion l10n/pot/civicrm.pot
Original file line number Diff line number Diff line change
Expand Up @@ -49449,7 +49449,6 @@ msgstr ""
msgid "Smart Marketing Group"
msgstr ""


#: CRM/Mailing/External/SmartMarketing/Flydove.php
msgid "Cannot retrieve remote group, try again later"
msgstr ""
Expand Down Expand Up @@ -49543,4 +49542,8 @@ msgid "The will be synchronized at a fixed time every day."
msgstr ""

msgid "If there is an immediate need, you can click \"Manual Sync\"."
msgstr ""

#: CRM/Group/Form/Edit.php
msgid "Remote Group"
msgstr ""
Binary file modified l10n/zh_TW/LC_MESSAGES/civicrm.mo
Binary file not shown.
4 changes: 4 additions & 0 deletions l10n/zh_TW/civicrm.po
Original file line number Diff line number Diff line change
Expand Up @@ -50102,3 +50102,7 @@ msgstr "將於每日固定時間會同步名單。"

msgid "If there is an immediate need, you can click \"Manual Sync\"."
msgstr "若有需要,你可點擊「手動同步」"

#: CRM/Group/Form/Edit.php
msgid "Remote Group"
msgstr "遠端群組"
3 changes: 3 additions & 0 deletions packages/tcpdf/tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -22914,6 +22914,9 @@ public function ImageSVG($file, $x='', $y='', $w=0, $h=0, $link='', $align='', $
// sets the character data handler function for the XML parser
xml_set_character_data_handler($this->parser, 'segSVGContentHandler');
// start parsing an XML document
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
libxml_set_external_entity_loader(null);
}
if (!xml_parse($this->parser, $svgdata)) {
$error_message = sprintf('SVG Error: %s at line %d', xml_error_string(xml_get_error_code($this->parser)), xml_get_current_line_number($this->parser));
$this->Error($error_message);
Expand Down
17 changes: 16 additions & 1 deletion templates/CRM/Activity/Form/Activity.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,24 @@
</td>
</tr>
{/if}
{if $rows && $action eq 4}
<tr class="crm-activity-form-block-folowup">
<td colspan="2">
<div class="crm-accordion-wrapper crm-accordion-open">
<div class="crm-accordion-header">
<div class="zmdi crm-accordion-pointer"></div>{ts}Followup Activity{/ts}
</div>
<div class="crm-accordion-body">
{include file="CRM/Activity/Form/Selector.tpl}
</div>{*accordion-body*}
</div>
</td>
</tr>
{/if}

{if $action eq 4 AND $currentAttachmentURL}
{include file="CRM/Form/attachment.tpl"}{* For view action the include provides the row and cells. *}
{else if $action eq 1 OR $action eq 2}
{elseif $action eq 1 OR $action eq 2}
<tr class="crm-activity-form-block-attachment">
<td colspan="2">
{include file="CRM/Form/attachment.tpl"}
Expand Down Expand Up @@ -343,6 +357,7 @@
<a href="{crmURL p='civicrm/contact/view/activity' q=$urlParams}" class="delete button" title="{ts}Delete{/ts}"><span><div class="zmdi zmdi-delete"></div>{ts}Delete{/ts}</span></a>
{/if}
{/if}

{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>

Expand Down

0 comments on commit 658754c

Please sign in to comment.