Reopen:

please remove unnecessary if statements

RSSSwitchableFieldTransformer#readFromItem
        String propertyName = definePropertyName();
        if (relatedFormItem.getItemProperty(propertyName) != null) {
            switchableFieldNewValues.addItemProperty(propertyName, relatedFormItem.getItemProperty(propertyName));
        }
        if (relatedFormItem.getItemProperty(propertyName) != null) {
            switchableFieldNewValues.addItemProperty(FIELD_KEY_DISABLED, relatedFormItem.getItemProperty(FIELD_KEY_DISABLED));
        }
        if (relatedFormItem.getItemProperty(CONFIG_PROPERTY_NAME_CRON) != null) {
            switchableFieldNewValues.addItemProperty(FIELD_KEY_CRONMAKER, new DefaultProperty<PropertysetItem>(PropertysetItem.class, cronStringToCompositeTransform()));
        }
        if (relatedFormItem.getItemProperty(CONFIG_PROPERTY_NAME_CRON) != null) {
            switchableFieldNewValues.addItemProperty(FIELD_KEY_CRONSTRING, relatedFormItem.getItemProperty(CONFIG_PROPERTY_NAME_CRON));
        }
Change By: Milan Divilek (24/Feb/15 2:56 PM)
Resolution: Fixed

        
Status: Closed Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to