Fix admin controller l() error and redundant CI runs
Add l() wrapper to AdminSimpleWithdrawalController so PS8 routing does not throw UndefinedMethodError; restrict build workflow to branch pushes only so tag pushes no longer trigger a redundant build run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,8 @@ name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -60,6 +60,15 @@ class AdminSimpleWithdrawalController extends ModuleAdminController
|
||||
];
|
||||
}
|
||||
|
||||
protected function l($string, $class = null, $addslashes = false, $htmlentities = true)
|
||||
{
|
||||
if ($this->module) {
|
||||
return $this->module->l($string, 'AdminSimpleWithdrawalController');
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
public function renderScopeLabel($value, $row)
|
||||
{
|
||||
if ($value === 'partial') {
|
||||
|
||||
Reference in New Issue
Block a user