From 043c58d6c42959d2a20895a71f0000fddc17d08a Mon Sep 17 00:00:00 2001
From: Dedyk Suntoro Atmojo <39944254+dedyksuntoro@users.noreply.github.com>
Date: Tue, 30 Mar 2021 23:30:54 +0700
Subject: [PATCH] Fix: Call to undefined function str_limit()
Fix error Call to undefined function str_limit() when browse data child form
Replace echo "
".str_limit(strip_tags($row->$col), 50)." | "; with echo "".Str::of(strip_tags($row->$col))->limit(50)." | ";
Laravel 7+
---
src/views/default/type_components/datamodal/browser.blade.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/default/type_components/datamodal/browser.blade.php b/src/views/default/type_components/datamodal/browser.blade.php
index 79eae1c5b..8c851ff98 100644
--- a/src/views/default/type_components/datamodal/browser.blade.php
+++ b/src/views/default/type_components/datamodal/browser.blade.php
@@ -40,7 +40,7 @@
if ($ext && in_array($ext, $img_extension)) {
echo " | ";
} else {
- echo "".str_limit(strip_tags($row->$col), 50)." | ";
+ echo "".Str::of(strip_tags($row->$col))->limit(50)." | ";
}
@endphp
@endforeach
@@ -67,4 +67,4 @@ class='fa fa-check-circle'> {{cbLang('datamodal_select')}}
@endforeach
-{!! str_replace("/?","?",$result->appends(Request::all())->render()) !!}
\ No newline at end of file
+{!! str_replace("/?","?",$result->appends(Request::all())->render()) !!}