| @@ 146-153 (lines=8) @@ | ||
| 143 | 'set-templates-modal' => [ |
|
| 144 | 'class' => PrepareBulkAction::class, |
|
| 145 | 'view' => 'modal/_bulkSetTemplates', |
|
| 146 | 'on beforePerform' => function (Event $event) { |
|
| 147 | /** @var \hipanel\actions\SearchAction $action */ |
|
| 148 | $action = $event->sender; |
|
| 149 | $dataProvider = $action->getDataProvider(); |
|
| 150 | $dataProvider->query |
|
| 151 | ->select(['*']) |
|
| 152 | ->addSelect(['templates']); |
|
| 153 | }, |
|
| 154 | ], |
|
| 155 | 'set-serie' => [ |
|
| 156 | 'class' => SmartUpdateAction::class, |
|
| @@ 183-189 (lines=7) @@ | ||
| 180 | 'action' => 'index', |
|
| 181 | ], |
|
| 182 | ], |
|
| 183 | 'on beforeFetch' => function (Event $event) { |
|
| 184 | /** @var \hipanel\actions\SearchAction $action */ |
|
| 185 | $action = $event->sender; |
|
| 186 | $dataProvider = $action->getDataProvider(); |
|
| 187 | $dataProvider->query |
|
| 188 | ->select(['*']); |
|
| 189 | }, |
|
| 190 | ], |
|
| 191 | 'validate-form' => [ |
|
| 192 | 'class' => ValidateFormAction::class, |
|