Skip to content

Commit

Permalink
removed urlQuery Handling (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kreatif committed Feb 21, 2023
1 parent 6c51209 commit 6800b08
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/Extensions.php
Expand Up @@ -17,7 +17,6 @@ class Extensions
{
public static function init(): void
{
\rex_extension::register('URL_PROFILE_QUERY', [Extensions::class, 'ext__urlQuery']);
\rex_extension::register('YFORM_DATA_UPDATED', [Extensions::class, 'ext__dataUpdated']);

if (\rex::isBackend()) {
Expand Down Expand Up @@ -440,17 +439,6 @@ public static function ext_yformDataListSql(\rex_extension_point $ep): void
}
}

public static function ext__urlQuery(\rex_extension_point $ep): void
{
$profile = $ep->getParam('profile');

if ($class = Model::getModelClass($profile->getTableName())) {
$query = $ep->getSubject();
$class::addQueryDefaultFilters($query, 'data');
$ep->setSubject($query);
}
}

public static function ext__dataUpdated(\rex_extension_point $ep): void
{
$data = $ep->getParam('data');
Expand Down

0 comments on commit 6800b08

Please sign in to comment.