Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-20498, removed code from run() since its been invoked in parent f… #10278

Merged
merged 1 commit into from
Apr 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions CRM/Financial/Page/FinancialAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,30 +90,6 @@ public function &links() {
return self::$_links;
}

/**
* Run the page.
*
* This method is called after the page is created. It checks for the
* type of action and executes that action.
* Finally it calls the parent's run method.
*/
public function run() {
// get the requested action
$action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); // default to 'browse'

// assign vars to templates
$this->assign('action', $action);
$id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0);

// what action to take ?
if ($action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD)) {
$this->edit($action, $id);
}

// parent run
return parent::run();
}

/**
* Browse all custom data groups.
*/
Expand Down
13 changes: 0 additions & 13 deletions CRM/Financial/Page/FinancialBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,6 @@ public function &links() {
public function run() {
$context = CRM_Utils_Request::retrieve('context', 'String', $this);
$this->set("context", $context);
// assign vars to templates
$id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0);
$action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); // default to 'browse'

// what action to take ?
if ($action & (CRM_Core_Action::UPDATE |
CRM_Core_Action::ADD |
CRM_Core_Action::CLOSE |
CRM_Core_Action::REOPEN |
CRM_Core_Action::EXPORT)
) {
$this->edit($action, $id);
}
// parent run
return parent::run();
}
Expand Down
24 changes: 0 additions & 24 deletions CRM/Financial/Page/FinancialType.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,30 +96,6 @@ public function &links() {
return self::$_links;
}

/**
* Run the page.
*
* This method is called after the page is created. It checks for the
* type of action and executes that action.
* Finally it calls the parent's run method.
*/
public function run() {
// get the requested action
$action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); // default to 'browse'

// assign vars to templates
$this->assign('action', $action);
$id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, 0);

// what action to take ?
if ($action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD)) {
$this->edit($action, $id);
}

// parent run
return parent::run();
}

/**
* Browse all financial types.
*/
Expand Down