Skip to content

Commit

Permalink
Merge branch 'release/36.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Aug 1, 2024
2 parents 726daf3 + a3f438a commit 94dab0a
Show file tree
Hide file tree
Showing 18 changed files with 32 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Classes/Command/LuxCacheWarmupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
use In2code\Lux\Exception\ContextException;
use In2code\Lux\Utility\CacheLayerUtility;
use In2code\Lux\Utility\ConfigurationUtility;
use In2code\Lux\Utility\EnvironmentUtility;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException;
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Fluid\View\StandaloneView;

Expand Down Expand Up @@ -51,7 +51,7 @@ public function configure()
*/
public function execute(InputInterface $input, OutputInterface $output): int
{
if (Environment::isCli() === false) {
if (EnvironmentUtility::isCli() === false) {
throw new ContextException('This command can only be executed from CLI', 1645378130);
}

Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/FrontendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
use In2code\Lux\Domain\Tracker\AttributeTracker;
use In2code\Lux\Domain\Tracker\CompanyTracker;
use In2code\Lux\Domain\Tracker\DownloadTracker;
use In2code\Lux\Domain\Tracker\EventTracker;
use In2code\Lux\Domain\Tracker\FrontenduserAuthenticationTracker;
use In2code\Lux\Domain\Tracker\LinkClickTracker;
use In2code\Lux\Domain\Tracker\LuxletterlinkAttributeTracker;
use In2code\Lux\Domain\Tracker\NewsTracker;
use In2code\Lux\Domain\Tracker\PageTracker;
use In2code\Lux\Domain\Tracker\SearchTracker;
use In2code\Lux\Domain\Tracker\EventTracker;
use In2code\Lux\Events\AfterTrackingEvent;
use In2code\Lux\Exception\ActionNotAllowedException;
use In2code\Lux\Exception\ConfigurationException;
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/LogEventListeners/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use In2code\Lux\Domain\Service\LogService;
use In2code\Lux\Events\Log\DownloadEvent;
use In2code\Lux\Events\Log\EventTrackerEvent;
use In2code\Lux\Events\Log\LinkClickEvent;
use In2code\Lux\Events\Log\LogEmail4linkSendEmailEvent;
use In2code\Lux\Events\Log\LogEmail4linkSendEmailFailedEvent;
Expand All @@ -16,7 +17,6 @@
use In2code\Lux\Events\Log\LogVisitorIdentifiedByLuxletterlinkEvent;
use In2code\Lux\Events\Log\SearchEvent;
use In2code\Lux\Events\Log\UtmEvent;
use In2code\Lux\Events\Log\EventTrackerEvent;
use TYPO3\CMS\Core\SingletonInterface;
use TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException;
use TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException;
Expand Down
3 changes: 1 addition & 2 deletions Classes/Utility/BackendUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use In2code\Lux\Domain\Model\Transfer\FilterDto;
use Throwable;
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\ArrayUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Property\PropertyMapper;
Expand Down Expand Up @@ -45,7 +44,7 @@ public static function isAdministrator(): bool
*/
public static function hasAdministrationPermission(): bool
{
return Environment::isCli() || self::isAdministrator();
return EnvironmentUtility::isCli() || self::isAdministrator();
}

/**
Expand Down
14 changes: 14 additions & 0 deletions Classes/Utility/EnvironmentUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);
namespace In2code\Lux\Utility;

use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Http\ApplicationType;

class EnvironmentUtility
Expand All @@ -13,6 +14,10 @@ class EnvironmentUtility
*/
public static function isFrontend(): bool
{
if (isset($GLOBALS['TYPO3_REQUEST']) === false) {
// E.g. when called from CLI
return false;
}
return ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend();
}

Expand All @@ -22,6 +27,15 @@ public static function isFrontend(): bool
*/
public static function isBackend(): bool
{
if (isset($GLOBALS['TYPO3_REQUEST']) === false) {
// E.g. when called from CLI
return false;
}
return ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend();
}

public static function isCli(): bool
{
return Environment::isCli();
}
}
1 change: 1 addition & 0 deletions Documentation/Technical/Changelog/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Double check if you have cleared all caches after installing a new LUX version t

| Version | Date | State | TYPO3 | Description |
|------------|------------|----------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 36.1.1 | 2024-08-01 | Bugfix | `11.5 + 12.4` | Use site.identifier instead of websiteTitle in all filters, fix possible exception on CLI commands, increase field size of attribute.value, fix small typo in docs |
| 36.1.0 | 2024-07-31 | Task | `11.5 + 12.4` | Add a bunch of onetime mail domains to configuration, rename virtual page request to event tracking requests |
| 36.0.0 | 2024-07-28 | Feature | `11.5 + 12.4` | Add push service for virtual page visits or search usage (via JavaScript) |
| 35.11.0 | 2024-07-25 | Feature | `11.5 + 12.4` | Add {file} variable in Email4LinkMail.html email template for a better extendability |
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Technical/Identification/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ lib.lux.settings {
0 = email
1 = *[email]
2 = *[e-mail]
2 = *[e_mail]
3 = *[e_mail]
}
firstname {
0 = firstname
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Analysis/Content.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Analysis/Dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}"
additionalAttributes="{onchange:'this.form.submit();'}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Analysis/News.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Analysis/Search.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Analysis/Utm.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Lead/Companies.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Lead/Dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}"
additionalAttributes="{onchange:'this.form.submit();'}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Filter/Lead/List.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h5><f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:mo
prependOptionLabel="{f:translate(key:'LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard.filter.sitesall')}"
prependOptionValue=""
optionValueField="identifier"
optionLabelField="configuration.websiteTitle"
optionLabelField="identifier"
value="{filter.site}" />
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#site">
<core:icon identifier="actions-globe" size="small" />
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'description' => 'Living User Experience - LUX - the Marketing Automation tool for TYPO3.
Turn your visitors to leads. Identification and profiling of your visitors within your TYPO3 website.',
'category' => 'plugin',
'version' => '36.1.0',
'version' => '36.1.1',
'author' => 'Alex Kellner',
'author_email' => '[email protected]',
'author_company' => 'in2code.de',
Expand Down
2 changes: 1 addition & 1 deletion ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ CREATE TABLE tx_lux_domain_model_attribute (
visitor int(11) DEFAULT '0' NOT NULL,

name varchar(255) DEFAULT '' NOT NULL,
value varchar(255) DEFAULT '' NOT NULL,
value text DEFAULT '' NOT NULL,

tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
Expand Down

0 comments on commit 94dab0a

Please sign in to comment.