TT#47017 Fix return page after closing edit phonebook form

And also fix description for Location creation form

All Customer controller fix implemented a little out of common way to handle customer detatils forms
Forms on customer details  page use common code on the bottom of the customer/details.tt. Phonebook forms use helpers/datatables forms related code. It allows to avoid stashed "description" parameter, that is totally related to View (template) and generates correct name for the edit form.

Change-Id: I2a16d6861cd2d847f68bd02245058c9a4535a0a9
(cherry picked from commit f741f62191)
changes/59/29359/1
Irina Peshinskaya 7 years ago
parent 87523059bf
commit 08d9e05281

@ -2134,6 +2134,7 @@ sub location_create :Chained('base_restricted') :PathPart('location/create') :Ar
}
$c->stash(
description => $c->loc('Location'),
close_target => $c->uri_for_action("/customer/details", [$contract->id]),
create_flag => 1,
form => $form

@ -738,6 +738,7 @@ $(function() {
helper.messages = messages;
helper.create_flag = phonebook_create_flag;
helper.edit_flag = phonebook_edit_flag;
helper.close_target = close_target;
helper.form_object = form;
helper.length_change = 1;
helper.dt_columns = phonebook_dt_columns;

Loading…
Cancel
Save