Skip to content

Commit e242bdf

Browse files
committed
Fix changes to author/committer not saved
Prior to this, when editing a changeset, the only change that was actually applied was when resetting author/committer to the original value from source control (i.e. selecting '--' from the list). Other values were not saved. This was due to use of user_ensure_exists(), which always returns void. Fixes #163
1 parent 405b38b commit e242bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/pages/edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
$t_repo = array_shift( $t_repos );
2525
$t_repo->load_branches();
2626

27-
if ( $f_user_id == 0 || user_ensure_exists( $f_user_id ) ) {
27+
if ( $f_user_id == 0 || user_exists( $f_user_id ) ) {
2828
$t_changeset->user_id = $f_user_id;
2929
}
3030

31-
if ( $f_committer_id == 0 || user_ensure_exists( $f_committer_id ) ) {
31+
if ( $f_committer_id == 0 || user_exists( $f_committer_id ) ) {
3232
$t_changeset->committer_id = $f_committer_id;
3333
}
3434

0 commit comments

Comments
 (0)