srchub

srchub Commit Details


Date:2015-08-30 18:38:42 (9 years 3 months ago)
Author:Natalie Adams
Branch:master
Commit:5c61ef6d52ccc64b57b7722d9efdefcd4ce1c888
Parents: 0601e7e447a8fc9b875eb9d47245377712339d00
Message:old Issue 51: Commits not following my account after email change, and email change back

Changes:

File differences

indefero/src/IDF/Views/User.php
265265
266266
267267
268
269
270
271
272
273
274
275
276
277
268278
269279
270280
$mailaddress->address = $email;
$mailaddress->create();
}
$sql = new Pluf_SQL('origauthor LIKE %s AND author is NULL', array("%" . $email . "%"));
$test = $sql->gen();
$commits = Pluf::factory("IDF_Commit")->getList(["filter" => $sql->gen()]);
foreach($commits as $commit) {
$commit->author = $request->user;
$commit->update();
}
$request->user->setMessage(sprintf(__('Your new email address "%s" has been validated. Thank you!'), Pluf_esc($email)));
$url = Pluf_HTTP_URL_urlForView('IDF_Views_User::myAccount');
return new Pluf_HTTP_Response_Redirect($url);

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05898s using 15 queries.