Skip to content

Commit 078d863

Browse files
committed
✨ giving saveRecord a function to stop save
1 parent f288d37 commit 078d863

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FileCabinet/SuiteScripts/CS/customModule_CS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function csExampleModule_CS(log, aModule, bModule) {
8484
try {
8585
log.audit('starting custom client script saveRecord');
8686
// Run code to see if...
87-
// allowSave = false;
87+
if (!scriptContext.currentRecord) allowSave = false; //?
8888
} catch (err) {
8989
log.error({ title: 'csExampleModule_CS.saveRecord()', details: err });
9090
}

0 commit comments

Comments
 (0)