MVC: bootgrid. pass fetchmode=copy when requesting a record to copy it later. The controller could use this to set defaults when copying.

e.g.

$fetchmode = $this->request->has("fetchmode") ? $this->request->get("fetchmode") : null;
This commit is contained in:
Ad Schellevis 2020-04-01 11:24:50 +02:00
parent b8a3c3dd3f
commit 26d3127ddf

View File

@ -313,7 +313,7 @@ $.fn.UIBootgrid = function (params) {
if (editDlg !== undefined) {
const uuid = $(this).data("row-id");
const urlMap = {};
urlMap['frm_' + editDlg] = params['get'] + uuid;
urlMap['frm_' + editDlg] = params['get'] + uuid + "?fetchmode=copy";
mapDataToFormUI(urlMap).done(function () {
// update selectors
formatTokenizersUI();