From: Alan Knowles Date: Tue, 27 Apr 2021 09:52:26 +0000 (+0800) Subject: Fix #6685 - more changes as per inspection master xls X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=aab2a109528c12b2026f1e41b7cd253a44f29e49 Fix #6685 - more changes as per inspection master xls --- diff --git a/DataObjects/Core_setting.php b/DataObjects/Core_setting.php index 97ec8bd3..e1eea761 100644 --- a/DataObjects/Core_setting.php +++ b/DataObjects/Core_setting.php @@ -55,7 +55,11 @@ class Pman_Core_DataObjects_Core_setting extends DB_DataObject function beforeInsert($q, $roo) { - exit; + if (isset($q['is_encrypt'])) { + $roo->jerr("no direct access for setting encrypted data at present?"); + } + // we store column data in here now - so it has to be insertable. + //exit; } function getKeyDirectory() diff --git a/Pman.Dialog.CoreColumnConfig.bjs b/Pman.Dialog.CoreColumnConfig.bjs new file mode 100644 index 00000000..1bff5574 --- /dev/null +++ b/Pman.Dialog.CoreColumnConfig.bjs @@ -0,0 +1,113 @@ +{ + "name" : "Pman.Dialog.CoreColumnConfig", + "parent" : "", + "title" : "", + "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreColumnConfig.bjs", + "permname" : "", + "modOrder" : "001", + "strings" : { + "cfcd208495d565ef66e7dff9f98764da" : "0", + "ea4788705e6873b424c65e91c2846b19" : "Cancel", + "c40cab5f875bb6c270d800eff77a4af0" : "Save Column Configuration", + "b5a7adde1af5c87d7fd797b6245c2a39" : "Description", + "c9cc8cce247e49bae79f15173ce97354" : "Save" + }, + "named_strings" : { + "description_fieldLabel" : "b5a7adde1af5c87d7fd797b6245c2a39", + "name_value" : "cfcd208495d565ef66e7dff9f98764da" + }, + "items" : [ + { + "listeners" : { + "show" : "function (_self)\n{\n \n}" + }, + "modal" : true, + "collapsible" : false, + "background" : true, + "title" : "Save Column Configuration", + "xtype" : "LayoutDialog", + "width" : 400, + "$ xns" : "Roo", + "closable" : false, + "resizable" : false, + "height" : 110, + "items" : [ + { + "xtype" : "LayoutRegion", + "$ xns" : "Roo", + "titlebar" : false, + "* prop" : "center" + }, + { + "background" : true, + "region" : "center", + "fitToFrame" : true, + "xtype" : "ContentPanel", + "$ xns" : "Roo", + "items" : [ + { + "listeners" : { + "|actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n\n \n \n if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){\n _this.dialog.setTitle(_this.data.title);\n }\n \n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", + "|rendered" : "function (form)\n{\n _this.form = form;\n}" + }, + "$ url" : "baseURL + '/Roo/core_setting'", + "method" : "POST", + "xtype" : "Form", + "style" : "padding:5px", + "$ xns" : "Roo.form", + "items" : [ + { + "fieldLabel" : "Description", + "xtype" : "TextField", + "allowBlank" : false, + "width" : 250, + "$ xns" : "Roo.form", + "name" : "description" + }, + { + "xtype" : "Hidden", + "$ xns" : "Roo.form", + "name" : "module" + }, + { + "xtype" : "Hidden", + "$ xns" : "Roo.form", + "name" : "val" + }, + { + "xtype" : "Hidden", + "value" : 0, + "$ xns" : "Roo.form", + "name" : "name" + }, + { + "xtype" : "Hidden", + "$ xns" : "Roo.form", + "name" : "id" + } + ] + } + ] + }, + { + "listeners" : { + "|click" : "function() {\n _this.form.reset();\n _this.dialog.hide();\n}" + }, + "text" : "Cancel", + "xtype" : "Button", + "$ xns" : "Roo", + "* prop" : "buttons[]" + }, + { + "listeners" : { + "|click" : "function() {\n\n \n _this.form.doAction('submit');\n \n}" + }, + "text" : "Save", + "xtype" : "Button", + "$ xns" : "Roo", + "* prop" : "buttons[]" + } + ] + } + ] +} \ No newline at end of file diff --git a/Pman.Dialog.CoreColumnConfig.js b/Pman.Dialog.CoreColumnConfig.js new file mode 100644 index 00000000..9e9cbed5 --- /dev/null +++ b/Pman.Dialog.CoreColumnConfig.js @@ -0,0 +1,191 @@ +//