Browse code

Add alias to assets

Benjamin Roth authored on01/10/2024 15:02:40
Showing4 changed files
... ...
@@ -51,7 +51,7 @@ class ManagedPropertyReaderController extends AbstractFrontendModuleController
51 51
         $jumpTo = PageModel::findByPk($model->jumpTo);
52 52
 
53 53
         // Set the item from the auto_item parameter
54
-        if (!isset($_GET['items']) && Config::get('useAutoItem') && Input::get('auto_item'))
54
+        if (!isset($_GET['items']) && Input::get('auto_item'))
55 55
         {
56 56
             Input::setGet('items', Input::get('auto_item'));
57 57
         }
... ...
@@ -50,7 +50,7 @@ class RealEstateAssetsReaderController extends RealEstateAssetsModuleController
50 50
         $jumpTo = PageModel::findByPk($model->jumpTo);
51 51
 
52 52
         // Set the item from the auto_item parameter
53
-        if (Input::get('items') === null && Config::get('useAutoItem') && Input::get('auto_item'))
53
+        if (Input::get('items') === null && Input::get('auto_item'))
54 54
         {
55 55
             Input::setGet('items', Input::get('auto_item'));
56 56
         }
... ...
@@ -33,7 +33,7 @@ class ReplaceInsertTagsListener
33 33
         $insertTag = array_shift($elements);
34 34
 
35 35
         if ('re_asset' === $insertTag) {
36
-            if (!isset($_GET['items']) && Config::get('useAutoItem') && Input::get('auto_item'))
36
+            if (!isset($_GET['items']) && Input::get('auto_item'))
37 37
             {
38 38
                 $varId = Input::get('auto_item');
39 39
             } else {
... ...
@@ -153,7 +153,7 @@ class RealEstateAssetsModel extends Model
153 153
             $time = Date::floorToMinute();
154 154
             $arrColumns[] = "$t.published='1' AND ($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'$time')";
155 155
         }
156
-dump(func_get_args());
156
+
157 157
         return static::findOneBy($arrColumns, array($varId), $arrOptions);
158 158
     }
159 159