Changeset 579


Ignore:
Timestamp:
Jun 17, 2010, 3:06:30 PM (7 years ago)
Author:
keesvb
Message:

clarified display of RELTIME to show 0s when time = 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/RelTime.groovy

    r564 r579  
    8686                if (seconds > 0) { stringValue += seconds + "s "; }
    8787
     88                if (reltime == 0) stringValue = "0s";
     89
    8890                return stringValue.trim();
    8991        }
     
    115117                if (seconds > 0) { values << handleNumerus(seconds, " second") }
    116118
     119                if (reltime == 0) values << "0 seconds";
     120
    117121                return stringValue + values.join(', ').trim();
    118122        }
     
    143147                if (seconds > 0) { return stringValue + handleNumerus(seconds, " second") }
    144148
     149                if (reltime == 0) values << "0 seconds";
     150
    145151                return "";
    146152        }
     
    173179         */
    174180        public static final String getHelpText() {
    175                 return "Use the first letter of weeks/days/hours/minutes/seconds, e.g. '1w 2d' for 1 week + 2 days or '10m30s for 10 minutes and 30 seconds.";
     181                return "Use the first letter of weeks/days/hours/minutes/seconds, e.g. '1w 2d' for 1 week + 2 days or '10m30s' for 10 minutes and 30 seconds.";
    176182        }
    177183
Note: See TracChangeset for help on using the changeset viewer.