Bug 40031: Redirect to add action page from add template form
Test plan: 1. Login to staff client. 2. Go to: Cataloging > MARC modification templates > New template 3. Give new template a name and click submit. 4. Following URL loads: http://localhost:8081/cgi-bin/koha/tools/marc_modification_templates.pl If you are using KTD 5. Apply patch and restart services. 6. Repeat steps 2 and 3. 7. Following URL loads: http://localhost:8081/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=(template_id)&op=select_template 8. You can now add actions for your new template. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
3c34d7bf43
commit
8a09573fa3
|
|
@ -50,7 +50,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
if ( $op eq "cud-create_template" ) {
|
||||
$template_id = '' unless $cgi->param('duplicate_current_template');
|
||||
$template_id = AddModificationTemplate( scalar $cgi->param('template_name'), $template_id );
|
||||
|
||||
print $cgi->redirect(
|
||||
"/cgi-bin/koha/tools/marc_modification_templates.pl?template_id=$template_id&op=select_template");
|
||||
} elsif ( $op eq "cud-delete_template" ) {
|
||||
|
||||
DelModificationTemplate($template_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue