Skip to content

Commit

Permalink
Merge 3.4 to 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaantony92 committed Aug 3, 2023
2 parents c2f21fb + 7f090f6 commit 572b04b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"pimcore/admin-ui-classic-bundle": "^1.0",
"pimcore/object-merger": "^4.0",
"pimcore/pimcore": "^11.0",
"pimcore/admin-ui-classic-bundle": "^1.0",
"pimcore/search-query-parser": "^1.3",
"pimcore/personalization-bundle": "^1.0",
"symfony/asset": "^6.2",
Expand Down
8 changes: 4 additions & 4 deletions install/class_source/class_CustomerSegmentGroup_export.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"description": null,
"parentClass": null,
"useTraits": null,
"description": "",
"parentClass": "",
"useTraits": "",
"allowInherit": false,
"allowVariants": false,
"showVariants": false,
Expand Down Expand Up @@ -255,4 +255,4 @@
"creationDate": true
}
}
}
}
6 changes: 3 additions & 3 deletions install/class_source/class_CustomerSegment_export.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"description": null,
"description": "",
"parentClass": "\\CustomerManagementFrameworkBundle\\Model\\AbstractCustomerSegment",
"implementsInterfaces": null,
"listingParentClass": "",
"useTraits": "",
"listingUseTraits": "",
"allowInherit": false,
"allowVariants": null,
"allowVariants": false,
"showVariants": false,
"layoutDefinitions": {
"fieldtype": "panel",
Expand Down Expand Up @@ -239,4 +239,4 @@
}
},
"enableGridLocking": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"useTraits": "",
"listingUseTraits": "",
"allowInherit": true,
"allowVariants": null,
"allowVariants": false,
"showVariants": false,
"generateTypeDeclarations": true,
"layoutDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"description": null,
"description": "",
"parentClass": "CustomerManagementFrameworkBundle\\Model\\AbstractTermSegmentBuilderDefinition",
"useTraits": null,
"useTraits": "",
"allowInherit": false,
"allowVariants": false,
"showVariants": false,
Expand Down Expand Up @@ -164,4 +164,4 @@
"creationDate": true
}
}
}
}
6 changes: 3 additions & 3 deletions install/class_source/optional/class_Customer_export.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"description": null,
"description": "",
"parentClass": "\\CustomerManagementFrameworkBundle\\Model\\AbstractCustomer",
"implementsInterfaces": null,
"listingParentClass": "",
"useTraits": "",
"listingUseTraits": "",
"allowInherit": false,
"allowVariants": null,
"allowVariants": false,
"showVariants": false,
"layoutDefinitions": {
"fieldtype": "panel",
Expand Down Expand Up @@ -1734,4 +1734,4 @@
}
},
"enableGridLocking": false
}
}
3 changes: 2 additions & 1 deletion src/View/Formatter/DefaultViewFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use CustomerManagementFrameworkBundle\Model\CustomerSegmentInterface;
use Pimcore\Model\DataObject\ClassDefinition;
use Pimcore\Model\DataObject\ClassDefinition\Data;
use Pimcore\Security\SecurityHelper;
use Symfony\Contracts\Translation\TranslatorInterface;

class DefaultViewFormatter implements ViewFormatterInterface
Expand Down Expand Up @@ -176,7 +177,7 @@ public function getLocale()
*/
protected function formatSegmentValue(CustomerSegmentInterface $segment)
{
return sprintf('<span class="label label-default">%s</span>', $segment->getName());
return sprintf('<span class="label label-default">%s</span>', SecurityHelper::convertHtmlSpecialChars($segment->getName()));
}

protected function getLanguageFromLocale($locale)
Expand Down

0 comments on commit 572b04b

Please sign in to comment.