This commit is contained in:
Jean-Christian Paul Denis 2022-12-10 01:24:24 +01:00
parent 825edb37fe
commit 22f3522d6a
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -41,8 +41,8 @@ if (dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([
dcCore::app()->addBehavior('adminAfterPageCreate', ['templatorBehaviors','adminBeforePostUpdate']);
dcCore::app()->addBehavior('adminBeforePageUpdate', ['templatorBehaviors','adminBeforePostUpdate']);
dcCore::app()->addBehavior('adminPostsActionsV2', ['templatorBehaviors','adminPostsActionsV2']);
dcCore::app()->addBehavior('adminPagesActionsV2', ['templatorBehaviors','adminPostsActionsV2']);
dcCore::app()->addBehavior('adminPostsActions', ['templatorBehaviors','adminPostsActions']);
dcCore::app()->addBehavior('adminPagesActions', ['templatorBehaviors','adminPostsActions']);
dcCore::app()->addBehavior('adminFiltersListsV2', function (ArrayObject $sorts) {
$sorts['templator'] = [
@ -94,7 +94,7 @@ class templatorBehaviors
}
}
public static function adminPostsActionsV2(dcPostsActions $pa)
public static function adminPostsActions(dcPostsActions $pa)
{
$pa->addAction(
[