mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
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:
parent
b8a3c3dd3f
commit
26d3127ddf
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user