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