File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
internal/Magento/Framework/Backup Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function setRootDir($rootDir)
160
160
);
161
161
}
162
162
163
- $ this ->_rootDir = $ rootDir ;
163
+ $ this ->_rootDir = rtrim ( $ rootDir, ' / ' ) ;
164
164
return $ this ;
165
165
}
166
166
@@ -181,7 +181,7 @@ public function getRootDir()
181
181
*/
182
182
public function setBackupsDir ($ backupsDir )
183
183
{
184
- $ this ->_backupsDir = $ backupsDir ;
184
+ $ this ->_backupsDir = rtrim ( $ backupsDir, ' / ' ) ;
185
185
return $ this ;
186
186
}
187
187
Original file line number Diff line number Diff line change @@ -249,6 +249,7 @@ public function getIgnorePaths()
249
249
*/
250
250
public function setBackupsDir ($ backupsDir )
251
251
{
252
+ $ backupsDir = rtrim ($ backupsDir , '/ ' );
252
253
parent ::setBackupsDir ($ backupsDir );
253
254
$ this ->addIgnorePaths ($ backupsDir );
254
255
return $ this ;
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ public function testAction($action)
114
114
'rollBackFs ' => $ this ->fsMock ,
115
115
]
116
116
);
117
- $ model ->setRootDir ($ rootDir );
118
- $ model ->setBackupsDir ($ rootDir );
117
+ $ model ->setRootDir ($ rootDir . ' / ' );
118
+ $ model ->setBackupsDir ($ rootDir . ' / ' );
119
119
$ model ->{$ action }();
120
120
$ this ->assertTrue ($ model ->getIsSuccess ());
121
121
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ public function testAction($action)
113
113
'rollBackFs ' => $ this ->fsMock ,
114
114
]
115
115
);
116
- $ model ->setRootDir ($ rootDir );
117
- $ model ->setBackupsDir ($ rootDir );
116
+ $ model ->setRootDir ($ rootDir . ' / ' );
117
+ $ model ->setBackupsDir ($ rootDir . ' / ' );
118
118
$ model ->{$ action }();
119
119
$ this ->assertTrue ($ model ->getIsSuccess ());
120
120
Original file line number Diff line number Diff line change @@ -70,13 +70,12 @@ define([
70
70
* request backup options.
71
71
*/
72
72
requestBackupOptions : function ( ) {
73
- var action ;
74
-
75
73
this . hidePopups ( ) ;
76
- action = this . type != 'snapshot' ? 'hide' : 'show' ; //eslint-disable-line eqeqeq
77
74
this . showPopup ( 'backup-options' ) ;
78
75
79
- $$ ( '#exclude-media-checkbox-container' ) . invoke ( action ) ;
76
+ if ( this . type === 'snapshot' ) {
77
+ jQuery ( '#exclude-media-checkbox-container' ) . removeClass ( 'no-display' ) ;
78
+ }
80
79
} ,
81
80
82
81
/**
You can’t perform that action at this time.
0 commit comments