details: https://code.openbravo.com/erp/devel/pi/rev/e720f25cba62
changeset: 16465:e720f25cba62
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Wed May 09 15:43:52 2012 +0200
summary: Fixes issue 20457: Link removed in status bar if window not
accessible
If a field with a link was shown in the status bar, the link was active
regardless of the accessibility to the target window. Now, there will only be a
link if the target window is accessible by the current role.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-statusbar.js
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r cec498bcc924 -r e720f25cba62
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-statusbar.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-statusbar.js
Wed May 09 15:33:42 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-statusbar.js
Wed May 09 15:43:52 2012 +0200
@@ -420,7 +420,7 @@
if (isc.Page.isRTL()) {
msg += msgTmp;
}
- if (arrayTitleField.length === 6 && arrayTitleField[2][i] !== undef &&
arrayTitleField[3][i] !== undef && arrayTitleField[4][i] !== undef &&
arrayTitleField[5][i] !== undef) {
+ if (arrayTitleField.length === 6 && arrayTitleField[2][i] !== undef &&
arrayTitleField[3][i] !== undef && arrayTitleField[4][i] !== undef &&
arrayTitleField[5][i] !== undef &&
OB.AccessibleEntities[arrayTitleField[4][i]]) {
msg += '<span class="' + (this.titleLinkStyle ? this.titleLinkStyle
: '') + '" onclick="OB.Utilities.openDirectView(\'' + arrayTitleField[2][i] +
'\', \'' + arrayTitleField[3][i] + '\', \'' + arrayTitleField[4][i] + '\', \''
+ arrayTitleField[5][i] + '\')">' + rtlImgLink + rtlSep + arrayTitleField[0][i]
+ ltrSep + ltrImgLink + '</span>';
} else {
msg += '<span class="' + (this.titleLabelStyle ?
this.titleLabelStyle : '') + '">' + rtlSep + arrayTitleField[0][i] + ltrSep +
'</span>';
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits