Browse code

Add alias to assets

Benjamin Roth authored on01/10/2024 14:55:31
Showing2 changed files
... ...
@@ -50,7 +50,6 @@ class RealEstateAssetsReaderController extends RealEstateAssetsModuleController
50 50
         $jumpTo = PageModel::findByPk($model->jumpTo);
51 51
 
52 52
         // Set the item from the auto_item parameter
53
-        dump($_GET);
54 53
         if (Input::get('items') === null && Config::get('useAutoItem') && Input::get('auto_item'))
55 54
         {
56 55
             Input::setGet('items', Input::get('auto_item'));
... ...
@@ -153,8 +153,8 @@ 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
-
157
-        return static::findOneBy($arrColumns, $varId, $arrOptions);
156
+dump(func_get_args());
157
+        return static::findOneBy($arrColumns, array($varId), $arrOptions);
158 158
     }
159 159
 
160 160
     /**