From 057fb9923e19f12f282c00a45d64dabe6b7d19a7 Mon Sep 17 00:00:00 2001 From: soufiane Date: Thu, 30 Nov 2023 17:52:26 +0100 Subject: [PATCH] wait #6479 @0:20 --- app/Models/FluidbookExternalInstallServer.php | 3 +-- .../views/vendor/backpack/crud/list-fluidbook.blade.php | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) 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 -- 2.39.5