Skip to content

Commit

Permalink
Remove isset from batch form
Browse files Browse the repository at this point in the history
Affects url civicrm/financial/financialbatches?reset=1&batchStatus=1
  • Loading branch information
eileenmcnaughton committed Dec 1, 2021
1 parent 8416f5c commit d98d889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Financial/Form/BatchTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form_Search {
public function preProcess() {
// This reuses some styles from search forms
CRM_Core_Resources::singleton()->addStyleFile('civicrm', 'css/searchForm.css', 1, 'html-header');

$this->addExpectedSmartyVariable('batchStatus');
self::$_entityID = CRM_Utils_Request::retrieve('bid', 'Positive') ? CRM_Utils_Request::retrieve('bid', 'Positive') : CRM_Utils_Array::value('batch_id', $_POST);
$this->assign('entityID', self::$_entityID);
if (isset(self::$_entityID)) {
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Financial/Form/Search.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*}

{* Financial search component. *}
{if !isset($batchStatus)}
{if $batchStatus}
{assign var="batchStatus" value="open"}
{/if}
<div id="enableDisableStatusMsg" class="crm-container" style="display:none"></div>
Expand Down

0 comments on commit d98d889

Please sign in to comment.