File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 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)
129129
130130 // Invoke saving of new values.
131131 $ this ->saveProcessor ->process ($ changedData );
132- $ this ->flagManager ->saveFlag (static ::FLAG_CODE , $ data );
133132 });
133+
134+ $ this ->scope ->setCurrentScope ($ currentScope );
135+ $ this ->flagManager ->saveFlag (static ::FLAG_CODE , $ data );
134136 } catch (\Exception $ e ) {
135137 throw new InvalidTransitionException (__ ('%1 ' , $ e ->getMessage ()), $ e );
136138 } finally {
Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ public function testImport()
156156 $ this ->scopeMock ->expects ($ this ->at (2 ))
157157 ->method ('setCurrentScope ' )
158158 ->with ('oldScope ' );
159+ $ this ->scopeMock ->expects ($ this ->at (3 ))
160+ ->method ('setCurrentScope ' )
161+ ->with ('oldScope ' );
159162 $ this ->flagManagerMock ->expects ($ this ->once ())
160163 ->method ('saveFlag ' )
161164 ->with (Importer::FLAG_CODE , $ data );
You can’t perform that action at this time.
0 commit comments