Skip to content

Commit 8c84c46

Browse files
committed
further simplifications
1 parent 369755d commit 8c84c46

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/cartridges/symfony/controller/helper/ListEntriesHelper.xtend

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ class ListEntriesHelper {
209209
'value' => '«IF null !== value»«value.replace("'", "")»«ELSE»«name.formatForCode.replace("'", "")»«ENDIF»',
210210
'text' => $this->trans('«name.toFirstUpper.replace("'", "")»'«IF !domain.empty», [], '«domain»'«ENDIF»),
211211
'title' => «IF null !== documentation && !documentation.empty»$this->trans('«documentation.replace("'", "")»'«IF !domain.empty», [], '«domain»'«ENDIF»)«ELSE»''«ENDIF»,
212-
'image' => '«IF null !== image && !image.empty»«image»«ENDIF»',
213212
'default' => «^default.displayBool»,
214213
];
215214
'''
@@ -219,7 +218,6 @@ class ListEntriesHelper {
219218
'value' => '!«IF null !== value»«value.replace("'", "")»«ELSE»«name.formatForCode.replace("'", "")»«ENDIF»',
220219
'text' => $this->trans('All except «name.toFirstLower.replace("'", "")»'«IF !domain.empty», [], '«domain»'«ENDIF»),
221220
'title' => $this->trans('Shows all items except these which are «name.formatForDisplay.replace("'", "")»'«IF !domain.empty», [], '«domain»'«ENDIF»),
222-
'image' => '',
223221
'default' => false,
224222
];
225223
'''

bundles/org.zikula.modulestudio.generator/src/org/zikula/modulestudio/generator/extensions/ModelExtensions.xtend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,10 @@ class ModelExtensions {
543543

544544
/**
545545
* Returns the sub folder path segment for this upload field,
546-
* that is either the subFolderName attribute (if set) or the name otherwise.
546+
* that is actually field name by default.
547547
*/
548548
def subFolderPathSegment(UploadField it) {
549-
(if (null !== subFolderName && !subFolderName.empty) subFolderName else name).formatForDB
549+
name.formatForCode
550550
}
551551

552552
/**

0 commit comments

Comments
 (0)