Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jan 9, 2023
1 parent c490b37 commit 9254450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Igniter\PayRegister;

use Admin\Controllers\Orders;
use Admin\Models\Payments_model;
use Admin\Requests\Location;
use Admin\Widgets\Form;
Expand Down Expand Up @@ -59,7 +60,7 @@ public function registerFormWidgets()
public function boot()
{
Event::listen('admin.form.extendFieldsBefore', function (Form $form) {
if ($form->model instanceof \Admin\Models\Orders_model) {
if ($form->getController() instanceof Orders && $form->model instanceof \Admin\Models\Orders_model) {
$form->tabs['fields']['payment_logs']['type'] = 'paymentattempts';
$form->tabs['fields']['payment_logs']['form'] = '$/igniter/payregister/models/config/payment_logs_model';
$form->tabs['fields']['payment_logs']['columns']['is_refundable'] = [
Expand Down

0 comments on commit 9254450

Please sign in to comment.