LaravelRUS / SleepingOwlAdmin

πŸ¦‰ Administrative interface builder for Laravel (Laravel admin)
http://sleepingowladmin.ru/
MIT License
805 stars 217 forks source link

Action ajax request has not field _id with selected rows #1200

Closed oleg-tolkach closed 4 years ago

oleg-tolkach commented 4 years ago

en

Version in Composer.json

"name": "laravelrus/sleepingowl", "version": "7.9",

Steps to reproduce

  1. Add new action button $display->setActions( AdminColumn::action('export', 'export') ->setAction(route('admin.news.export')) );
  2. Add route for this action Route::post('/news/export.json', ['as' => 'admin.news.export', function (\Illuminate\Http\Request $request) { dd($request->all()); }]);
  3. Select several rows and choose action export and press submit

What is expected?

  1. $request->_id should has array with ids of selected rows

What is actually happening?

  1. $request has not any fields

something wrong with compiled js because it works good when I copied js directory (\public\packages\sleepingowl\default\js) from old project with version "name": "laravelrus/sleepingowl", "version": "5.6.12",

daaner commented 4 years ago

ΠŸΡ€ΠΎΠ±Π»Π΅ΠΌΠ° Π±Ρ‹Π»Π° Π² связи с ТСсткой привязкой ΠΊ классу .panel Π° ΠΌΡ‹ этот класс ΡƒΠ±Ρ€Π°Π»ΠΈ ΠΈ Π·Π°ΠΌΠ΅Π½ΠΈΠ»ΠΈ Π½Π° .card. ΠŸΠΎΠΏΡ€Π°Π²ΠΈΠ» Π² DEV вСрсии... Π§ΡƒΡ‚ΡŒ ΠΏΠΎΠ·ΠΆΠ΅ сдСлаю Ρ€Π΅Π»ΠΈΠ·, ΠΏΠΎΠΊΠ° моТСшь ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ Π΄Π΅Π² Π²Π΅Ρ‚ΠΊΡƒ.