File tree 2 files changed +6
-1
lines changed 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,10 @@ public function import(array $data)
129
129
130
130
// Invoke saving of new values.
131
131
$ this ->saveProcessor ->process ($ changedData );
132
- $ this ->flagManager ->saveFlag (static ::FLAG_CODE , $ data );
133
132
});
133
+
134
+ $ this ->scope ->setCurrentScope ($ currentScope );
135
+ $ this ->flagManager ->saveFlag (static ::FLAG_CODE , $ data );
134
136
} catch (\Exception $ e ) {
135
137
throw new InvalidTransitionException (__ ('%1 ' , $ e ->getMessage ()), $ e );
136
138
} finally {
Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ public function testImport()
156
156
$ this ->scopeMock ->expects ($ this ->at (2 ))
157
157
->method ('setCurrentScope ' )
158
158
->with ('oldScope ' );
159
+ $ this ->scopeMock ->expects ($ this ->at (3 ))
160
+ ->method ('setCurrentScope ' )
161
+ ->with ('oldScope ' );
159
162
$ this ->flagManagerMock ->expects ($ this ->once ())
160
163
->method ('saveFlag ' )
161
164
->with (Importer::FLAG_CODE , $ data );
You can’t perform that action at this time.
0 commit comments