Skip to content

Commit

Permalink
Allow payments, themes form query to be extended
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Oct 23, 2022
1 parent cd89efb commit c61f8de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/admin/controllers/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function formFindModelObject($paymentCode = null)

// Prepare query and find model record
$query = $model->newQuery();
$this->fireEvent('admin.controller.extendFormQuery', [$query]);
$this->formExtendQuery($query);
$result = $query->whereCode($paymentCode)->first();

Expand Down
1 change: 1 addition & 0 deletions app/system/controllers/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ public function formFindModelObject($recordId)

// Prepare query and find model record
$query = $model->newQuery();
$this->fireEvent('admin.controller.extendFormQuery', [$query]);
$result = $query->where('code', $recordId)->first();

if (!$result) {
Expand Down

0 comments on commit c61f8de

Please sign in to comment.