Aleksander Machniak
2014-04-24 eed897ca030bff7a684d15be3bf46fc0a9565a82
Fix possibly wrong error message when contact with the same email exists on move/copy
2 files modified
4 ■■■■ changed files
program/steps/addressbook/copy.inc 2 ●●● patch | view | raw | blame | history
program/steps/addressbook/move.inc 2 ●●● patch | view | raw | blame | history
program/steps/addressbook/copy.inc
@@ -90,7 +90,7 @@
        else {
            $record = $result->first();
            $ids[] = $record['ID'];
            $errormsg = empty($a_record['email']) ? 'contactnameexists' : 'contactexists';
            $errormsg = empty($email) ? 'contactnameexists' : 'contactexists';
        }
    }
program/steps/addressbook/move.inc
@@ -99,7 +99,7 @@
        else {
            $record = $result->first();
            $ids[] = $record['ID'];
            $errormsg = empty($a_record['email']) ? 'contactnameexists' : 'contactexists';
            $errormsg = empty($email) ? 'contactnameexists' : 'contactexists';
        }
    }