Skip to content

Commit

Permalink
Fixed: checkStyle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalin committed Oct 25, 2024
1 parent 61c673a commit 4d4df9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ List fieldForTooltip = delegator.getModelEntity('PartyAcctgPreference').getAllFi
String labelInherited = label('AccountingUiLabels', 'AccountingInheritedValue')
fieldForTooltip.each {
context."${it}Tooltip" = !context.partyAcctgPreference?.(it) && context.aggregatedPartyAcctgPreference?.(it) ? labelInherited : ''
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ package org.apache.ofbiz.commonext.ofbizsetup

Map serviceResult = run service: 'getLastSystemInfoNote', with: parameters
context.layoutSettings.middleTopHeader = "---------- ${uiLabelMap.CommonLastSytemNotes} ----------"
["1", "2", "3"].each {
['1', '2', '3'].each {
Map infoNote = serviceResult."lastSystemInfoNote$it"
context.layoutSettings."middleTopMessage$it" = infoNote ? "${infoNote.noteDateTime.toString().substring(0, 16)} ${infoNote.noteInfo}" : ''
context.layoutSettings."middleTopLink$it" = infoNote && infoNote.moreInfoUrl && infoNote.moreInfoItemName && infoNote.moreInfoItemId
? "${infoNote.moreInfoUrl}?${infoNote.moreInfoItemName}=${infoNote.moreInfoItemId}&id=${infoNote.moreInfoItemId}"
: ''
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
*/
package org.apache.ofbiz.common

context.requiredLabels = new groovy.json.JsonSlurper().parseText(parameters.requiredLabels)
context.requiredLabels = new groovy.json.JsonSlurper().parseText(parameters.requiredLabels)

0 comments on commit 4d4df9d

Please sign in to comment.