Skip to content

Commit

Permalink
[Bug]: 文件拟写,标题等字段的值有时会丢失 #6965
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Jul 19, 2024
1 parent 912ae6d commit c7c5837
Show file tree
Hide file tree
Showing 13 changed files with 93 additions and 87 deletions.
5 changes: 4 additions & 1 deletion creator/packages/steedos-creator/client/router.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ objectRoutes.route '/view/:record_id',
, 10
triggersExit: [
(context, redirect) ->
if Session.get("instance_change") && ((context.params?.object_name == 'instances' && context.queryParams?.side_listview_id == 'draft') || (context.params?.object_name == 'instance_tasks' && context.queryParams?.side_listview_id == 'inbox'))
side_listview_id = context.queryParams?.side_listview_id
if window._.isArray(side_listview_id)
side_listview_id = side_listview_id[0]
if Session.get("instance_change") && ((context.params?.object_name == 'instances' && side_listview_id == 'draft') || (context.params?.object_name == 'instance_tasks' && side_listview_id == 'inbox'))
ins = WorkflowManager.getInstance()
if !("draft" != ins.state && "draft" == Session.get("box"))
InstanceManager.saveIns(false);
Expand Down
17 changes: 10 additions & 7 deletions server/bundle/programs/server/packages/aldeed_autoform.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ var MongoObject = Package['aldeed:simple-schema'].MongoObject;
var check = Package.check.check;
var Match = Package.check.Match;

/* Package-scope variables */
var AutoForm, globalDefaultTemplate, setDefaults, ArrayTracker, FormData, form_version, Hooks, getFlatDocOfFieldValues, getInputValue, getInputData, updateTrackedFieldValue, updateAllTrackedFieldValues, getAllFieldsInForm, validateField, arrayTracker, defaultTypeTemplates, deps, FormPreserve, res, Utility, year, month, date;

(function(){

///////////////////////////////////////////////////////////////////////
// //
// packages/aldeed_autoform/autoform-common.js //
// //
///////////////////////////////////////////////////////////////////////
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// packages/aldeed_autoform/autoform-common.js //
// //
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// This is the only file that is run on the server, too

// Extend the schema options allowed by SimpleSchema
SimpleSchema.extendOptions({
autoform: Match.Optional(Object)
});
///////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

}).call(this);

Expand Down
26 changes: 13 additions & 13 deletions server/bundle/programs/server/packages/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/objectql",
"version": "2.6.18",
"version": "2.6.19",
"main": "lib/index.js"
};

Expand All @@ -490,7 +490,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/i18n",
"version": "2.6.18",
"version": "2.6.19",
"main": "lib/index.js"
};

Expand All @@ -517,7 +517,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/core",
"version": "2.6.18",
"version": "2.6.19",
"main": "lib/index.js"
};

Expand All @@ -544,7 +544,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-meteor-package-loader",
"version": "2.6.18",
"version": "2.6.19",
"main": "index.js"
};

Expand All @@ -571,7 +571,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-api",
"version": "2.6.18",
"version": "2.6.19",
"main": "index.js"
};

Expand All @@ -598,7 +598,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-metadata-server",
"version": "2.6.18",
"version": "2.6.19",
"main": "index.js"
};

Expand All @@ -625,7 +625,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-package-registry",
"version": "2.6.18",
"version": "2.6.19",
"main": "package.service.js"
};

Expand All @@ -652,7 +652,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-objectql",
"version": "2.6.18",
"version": "2.6.19",
"main": "package.service.js"
};

Expand All @@ -679,7 +679,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-ui",
"version": "2.6.18",
"version": "2.6.19",
"main": "package.service.js"
};

Expand All @@ -706,7 +706,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/service-pages",
"version": "2.6.18",
"version": "2.6.19",
"main": "package.service.js"
};

Expand All @@ -733,7 +733,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/router",
"version": "2.6.18",
"version": "2.6.19",
"main": "lib/index.js"
};

Expand All @@ -760,7 +760,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/auth",
"version": "2.6.18",
"version": "2.6.19",
"main": "lib/index.js"
};

Expand All @@ -787,7 +787,7 @@ module.useNode();
//
module.exports = {
"name": "@steedos/workflow",
"version": "2.6.18",
"version": "2.6.19",
"main": "index.js"
};

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "standard-minifier-js",
"version": "2.6.0"
},
"totalMinifiedBytes": 4303967,
"totalMinifiedGzipBytes": 1084399,
"totalMinifiedBytes": 4303982,
"totalMinifiedGzipBytes": 1084411,
"minifiedBytesByPackage": {
"packages/meteor.js": 9504,
"packages/coffeescript.js": 32,
"packages/blaze-html-templates.js": 40,
"packages/modules-runtime.js": 4269,
"packages/modules.js": [
928390,
928423,
{
"node_modules": {
"meteor": {
Expand Down Expand Up @@ -750,7 +750,7 @@
},
"translations": {
"index.js": 1696,
"objectTranslation.js": 5821,
"objectTranslation.js": 5854,
"translation.js": 3317,
"templates": {
"objectTranslation.js": 1399,
Expand Down Expand Up @@ -2533,7 +2533,7 @@
}
],
"packages/steedos_creator.js": [
102770,
102752,
{
"node_modules": {
"meteor": {
Expand Down Expand Up @@ -2586,7 +2586,7 @@
"core.coffee": 18669,
"colors.coffee": 1485,
"temp_navs.coffee": 3922,
"router.coffee": 6234,
"router.coffee": 6216,
"tenant.coffee": 220,
"animate.js": 405,
"colResizable-1.6.js": 5920,
Expand Down
22 changes: 11 additions & 11 deletions server/bundle/programs/web.browser.legacy/program.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
"format": "web-program-pre1",
"manifest": [
{
"path": "11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.js",
"path": "e2300208b0127664c9de2d1db122fd5837d4470d.js",
"where": "client",
"type": "js",
"cacheable": true,
"url": "/11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.js?meteor_js_resource=true",
"size": 4303967,
"hash": "11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed",
"sri": "2vpFzqq7J61EXjmrqCBo60NIByIgPJkHfYhOuoNPI4hei/iGMfUHj0g3yRKsVKXY+K6/cQudR0VXX0fIQS+PAA=="
"url": "/e2300208b0127664c9de2d1db122fd5837d4470d.js?meteor_js_resource=true",
"size": 4303982,
"hash": "e2300208b0127664c9de2d1db122fd5837d4470d",
"sri": "kXY9fwzA3dRjt6+/CGOrrf6rm5RyjNBSNH+bdj8jTVWEUX7rpy+89Gduyy90TW17cYsiQT4yByCRYBWW4zImow=="
},
{
"path": "11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.stats.json",
"path": "e2300208b0127664c9de2d1db122fd5837d4470d.stats.json",
"where": "client",
"type": "json",
"cacheable": true,
"url": "/11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.stats.json?meteor_js_resource=true",
"url": "/e2300208b0127664c9de2d1db122fd5837d4470d.stats.json?meteor_js_resource=true",
"size": 92683,
"hash": "e96bf758a6a557300ccb71c283a1a56feace740c",
"sri": "iq8NAE8uPG+u8k2ywWZvZI1acmksiAhjd8SFQK7KqS5urlvvaLfGhWG/EojdqNQfGYrfacwaSUJMAXfWfLVSng=="
"hash": "22388efb6e55677db13f1be9c14615ab3f6d33e6",
"sri": "GynQNXL/DFb+fjiAw4mWPPNbJypZracmpWGc80pEnBEJbGMYdt0x6JxuLspANTedXZ6EO96W7M1FmWzgZw+3fA=="
},
{
"path": "dynamic/node_modules/@steedos/form-builder/dist/form-builder.min.js",
Expand Down Expand Up @@ -318,8 +318,8 @@
"cacheable": false,
"url": "/packages/steedos_formbuilder/formbuilder/languages/zh-CN.lang",
"size": 2439,
"hash": "734a9818c1a08d28b1e1dde1ed0c967ad5b1639b",
"sri": null
"hash": "41c29095fb591655d64f6862170bca966f1a0938",
"sri": "8LZx6iCUP2UhboPQOSgsmQZulwyOsprmS+IO6+XcEgQDv/IKad4JGZEfaklHdL3mHs3ZqCSm2a2QbIMxkWx7vg=="
},
{
"path": "assets/icons/License-for-icons.txt",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "standard-minifier-js",
"version": "2.6.0"
},
"totalMinifiedBytes": 4303967,
"totalMinifiedGzipBytes": 1084399,
"totalMinifiedBytes": 4303982,
"totalMinifiedGzipBytes": 1084411,
"minifiedBytesByPackage": {
"packages/meteor.js": 9504,
"packages/coffeescript.js": 32,
"packages/blaze-html-templates.js": 40,
"packages/modules-runtime.js": 4269,
"packages/modules.js": [
928390,
928423,
{
"node_modules": {
"meteor": {
Expand Down Expand Up @@ -750,7 +750,7 @@
},
"translations": {
"index.js": 1696,
"objectTranslation.js": 5821,
"objectTranslation.js": 5854,
"translation.js": 3317,
"templates": {
"objectTranslation.js": 1399,
Expand Down Expand Up @@ -2533,7 +2533,7 @@
}
],
"packages/steedos_creator.js": [
102770,
102752,
{
"node_modules": {
"meteor": {
Expand Down Expand Up @@ -2586,7 +2586,7 @@
"core.coffee": 18669,
"colors.coffee": 1485,
"temp_navs.coffee": 3922,
"router.coffee": 6234,
"router.coffee": 6216,
"tenant.coffee": 220,
"animate.js": 405,
"colResizable-1.6.js": 5920,
Expand Down
22 changes: 11 additions & 11 deletions server/bundle/programs/web.browser/program.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
"format": "web-program-pre1",
"manifest": [
{
"path": "11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.js",
"path": "e2300208b0127664c9de2d1db122fd5837d4470d.js",
"where": "client",
"type": "js",
"cacheable": true,
"url": "/11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.js?meteor_js_resource=true",
"size": 4303967,
"hash": "11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed",
"sri": "2vpFzqq7J61EXjmrqCBo60NIByIgPJkHfYhOuoNPI4hei/iGMfUHj0g3yRKsVKXY+K6/cQudR0VXX0fIQS+PAA=="
"url": "/e2300208b0127664c9de2d1db122fd5837d4470d.js?meteor_js_resource=true",
"size": 4303982,
"hash": "e2300208b0127664c9de2d1db122fd5837d4470d",
"sri": "kXY9fwzA3dRjt6+/CGOrrf6rm5RyjNBSNH+bdj8jTVWEUX7rpy+89Gduyy90TW17cYsiQT4yByCRYBWW4zImow=="
},
{
"path": "11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.stats.json",
"path": "e2300208b0127664c9de2d1db122fd5837d4470d.stats.json",
"where": "client",
"type": "json",
"cacheable": true,
"url": "/11cfa335b2c8af9c6d7ccb91c6d2920dfa21eaed.stats.json?meteor_js_resource=true",
"url": "/e2300208b0127664c9de2d1db122fd5837d4470d.stats.json?meteor_js_resource=true",
"size": 92683,
"hash": "e96bf758a6a557300ccb71c283a1a56feace740c",
"sri": "iq8NAE8uPG+u8k2ywWZvZI1acmksiAhjd8SFQK7KqS5urlvvaLfGhWG/EojdqNQfGYrfacwaSUJMAXfWfLVSng=="
"hash": "22388efb6e55677db13f1be9c14615ab3f6d33e6",
"sri": "GynQNXL/DFb+fjiAw4mWPPNbJypZracmpWGc80pEnBEJbGMYdt0x6JxuLspANTedXZ6EO96W7M1FmWzgZw+3fA=="
},
{
"path": "dynamic/node_modules/@steedos/form-builder/dist/form-builder.min.js",
Expand Down Expand Up @@ -318,8 +318,8 @@
"cacheable": false,
"url": "/packages/steedos_formbuilder/formbuilder/languages/zh-CN.lang",
"size": 2439,
"hash": "734a9818c1a08d28b1e1dde1ed0c967ad5b1639b",
"sri": null
"hash": "41c29095fb591655d64f6862170bca966f1a0938",
"sri": "8LZx6iCUP2UhboPQOSgsmQZulwyOsprmS+IO6+XcEgQDv/IKad4JGZEfaklHdL3mHs3ZqCSm2a2QbIMxkWx7vg=="
},
{
"path": "assets/icons/License-for-icons.txt",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "standard-minifier-js",
"version": "2.6.0"
},
"totalMinifiedBytes": 4480190,
"totalMinifiedGzipBytes": 1143693,
"totalMinifiedBytes": 4480205,
"totalMinifiedGzipBytes": 1143707,
"minifiedBytesByPackage": {
"packages/meteor.js": 9639,
"packages/coffeescript.js": 32,
"packages/blaze-html-templates.js": 40,
"packages/modules-runtime.js": 4269,
"packages/modules.js": [
1027468,
1027501,
{
"node_modules": {
"meteor": {
Expand Down Expand Up @@ -602,7 +602,7 @@
},
"translations": {
"index.js": 1696,
"objectTranslation.js": 5821,
"objectTranslation.js": 5854,
"translation.js": 3317,
"templates": {
"objectTranslation.js": 1399,
Expand Down Expand Up @@ -2266,7 +2266,7 @@
}
],
"packages/steedos_creator.js": [
102995,
102977,
{
"node_modules": {
"meteor": {
Expand Down Expand Up @@ -2319,7 +2319,7 @@
"core.coffee": 18669,
"colors.coffee": 1485,
"temp_navs.coffee": 3922,
"router.coffee": 6234,
"router.coffee": 6216,
"tenant.coffee": 220,
"animate.js": 445,
"colResizable-1.6.js": 5960,
Expand Down
Loading

0 comments on commit c7c5837

Please sign in to comment.