File tree 2 files changed +6
-2
lines changed
bundles/AdminBundle/Resources/public/js/pimcore/settings
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,9 @@ pimcore.settings.metadata.predefined = Class.create({
215215 tooltip : t ( 'delete' ) ,
216216 handler : function ( grid , rowIndex ) {
217217 let data = grid . getStore ( ) . getAt ( rowIndex ) ;
218- pimcore . helpers . deleteConfirm ( t ( 'predefined_metadata' ) , data . data . name , function ( ) {
218+ pimcore . helpers . deleteConfirm ( t ( 'predefined_metadata' ) ,
219+ Ext . util . Format . htmlEncode ( data . data . name ) ,
220+ function ( ) {
219221 grid . getStore ( ) . removeAt ( rowIndex ) ;
220222 } . bind ( this ) ) ;
221223 } . bind ( this )
Original file line number Diff line number Diff line change @@ -165,7 +165,9 @@ pimcore.settings.properties.predefined = Class.create({
165165 tooltip : t ( 'delete' ) ,
166166 handler : function ( grid , rowIndex ) {
167167 let data = grid . getStore ( ) . getAt ( rowIndex ) ;
168- pimcore . helpers . deleteConfirm ( t ( 'predefined_properties' ) , data . data . name , function ( ) {
168+ pimcore . helpers . deleteConfirm ( t ( 'predefined_properties' ) ,
169+ Ext . util . Format . htmlEncode ( data . data . name ) ,
170+ function ( ) {
169171 grid . getStore ( ) . removeAt ( rowIndex ) ;
170172 } . bind ( this ) ) ;
171173 } . bind ( this )
You can’t perform that action at this time.
0 commit comments