From: soufiane Date: Thu, 30 Nov 2023 16:52:26 +0000 (+0100) Subject: wait #6479 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=057fb9923e19f12f282c00a45d64dabe6b7d19a7;p=fluidbook-toolbox.git wait #6479 @0:20 --- diff --git a/app/Models/FluidbookExternalInstallServer.php b/app/Models/FluidbookExternalInstallServer.php index 6beb29d92..576918890 100644 --- a/app/Models/FluidbookExternalInstallServer.php +++ b/app/Models/FluidbookExternalInstallServer.php @@ -119,8 +119,7 @@ class FluidbookExternalInstallServer extends ExternalServer public static function getListFluidbook($id) { $id = strval($id); - return DB::table('fluidbook_publication') - ->whereJsonContains('settings->install_online->server', $id) + return FluidbookPublication::whereJsonContains('settings->install_online->server', $id) ->get() ->toArray(); } diff --git a/resources/views/vendor/backpack/crud/list-fluidbook.blade.php b/resources/views/vendor/backpack/crud/list-fluidbook.blade.php index 224e1ad89..331579d46 100644 --- a/resources/views/vendor/backpack/crud/list-fluidbook.blade.php +++ b/resources/views/vendor/backpack/crud/list-fluidbook.blade.php @@ -17,11 +17,11 @@ {{ __('URL finale du fluidbook') }} @foreach($fluidbooks as $fluidbook) - @php($url = $crud->entry->base_url.json_decode($fluidbook->settings, true)['install_online']['path']) + @php($url = $crud->entry->base_url.json_decode($fluidbook['settings'], true)['install_online']['path']) - {{$fluidbook->id}} - {{$fluidbook->c_title}} - {{json_decode($fluidbook->settings, true)['install_online']['path']}} + {{$fluidbook['id']}} + {{$fluidbook['c_title']}} + {{json_decode($fluidbook['settings'], true)['install_online']['path']}} {{$url}} @endforeach