File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
wcfsetup/install/files/lib/acp/form Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,15 @@ public function save()
272272 $ statement = WCF ::getDB ()->prepareStatement ($ sql );
273273 $ statement ->execute (\array_merge ([$ this ->destinationUserID ], $ conditions ->getParameters ()));
274274
275+ // articles
276+ $ conditions = new PreparedStatementConditionBuilder ();
277+ $ conditions ->add ("userID IN (?) " , [$ this ->mergedUserIDs ]);
278+ $ sql = "UPDATE wcf " . WCF_N . "_article
279+ SET userID = ?
280+ " . $ conditions ;
281+ $ statement = WCF ::getDB ()->prepareStatement ($ sql );
282+ $ statement ->execute (\array_merge ([$ this ->destinationUserID ], $ conditions ->getParameters ()));
283+
275284 // delete merged users
276285 $ action = new UserAction ($ this ->mergedUserIDs , 'delete ' );
277286 $ action ->executeAction ();
You can’t perform that action at this time.
0 commit comments