]> _ Git - cubist_cms-back.git/commitdiff
wip #7868 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Feb 2026 14:34:49 +0000 (15:34 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 10 Feb 2026 14:34:49 +0000 (15:34 +0100)
src/app/Magic/Fields/Field.php
src/resources/views/columns/url.blade.php

index 5eacfd07e875e32eae9dbfc6b7d8b11d063dc6c8..23841b23e8f6e60ff9b8cea44e03e72ae6e1370a 100644 (file)
@@ -272,10 +272,6 @@ class Field implements \ArrayAccess
             $res['function_name'] = $this->getAttribute('column_function_name');
         }
 
-        if ($this->hasAttribute('column_limit')) {
-            $res['limit'] = $this->getAttribute('column_limit');
-        }
-
         return $res;
     }
 
index b4f375c61950920477bb7aeb8ea05cac84e88146..305c8260c53a5943ca9c88c141127200aa34257a 100644 (file)
@@ -5,7 +5,7 @@
 
     $url=$value;
     $url=preg_replace('/^https?:\/\//','',$url);
-    $limit=50;
+    $limit=$column['limit'];
     if(strlen($url)>$limit){
         $url=substr($url,0,$limit-3).'...';
     }