[Koha-bugs] [Bug 26558] Guarantor information is lost when an error occurs during new account creation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 13 14:37:40 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26558

--- Comment #2 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
Readding guarantor parameters when error occurs should to the trick. This could
be achived same way it is done in bug 24113, but at the end of following code
block in memberentry.pl:

if ($nok or !$nodouble){
    $op="add" if ($op eq "insert");
    $op="modify" if ($op eq "save");
    %data=%newdata; 
    $template->param( updtype => ($op eq 'add' ?'I':'M'));      # used to check
for $op eq "insert"... but we just changed $op!
    unless ($step){  
        $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1,
step_5 => 1, step_6 => 1, step_7 => 1 );
    }  
}

However this really feels like pointless repetition and there should probably
be a better way to do this. Or way to make these parameters persist.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list