Project:
View Revisions: Issue #31114 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0031114: New approval message is not validated properly | ||
Revision | 2015-10-09 08:41 by aaroncalero | ||
Steps To Reproduce | Currently there is no code in POS that uses this new functionality. Steps to try this with a preference created on the fly, using developer tools: Execute the following: OB.MobileApp.model.attributes.permissions.test_dummy = false; OB.UTIL.Approval.requestApproval(OB.MobileApp.view.$.containerWindow.$.pointOfSale.model, 'test_dummy', function(approved){if(approved){alert('done');}}); >> Verify that the 'Supervisor Required' popup is shown. OB.MobileApp.model.attributes.permissions.test_dummy = true; >> Verify that now the 'done' alert is shown (test_dummy approval granted). OB.UTIL.Approval.requestApproval(OB.MobileApp.view.$.containerWindow.$.pointOfSale.model, { approval: 'test_dummy', message: 'test_dummy', params: [] }, function(approved){if(approved){alert('done');}}); >> ERROR: 'Supervisor Required' popup is shown, even if we have the permission for 'test_dummy'. |
||
Revision | 2015-10-08 18:32 by aaroncalero | ||
Steps To Reproduce | N/A currently there is no code in POS that uses this new functionality |
Copyright © 2000 - 2009 MantisBT Group |