Mailing List Archive

Re: [8535] Tweak to r8534 :) Minimum occurence needs to be a non-zero value
Oops, thanks

On Wed, 1 Apr 2009, brewt@bricolage.cc wrote:
> Revision: 8535
> Author: brewt
> Date: 2009-04-01 02:34:18 -0700 (Wed, 01 Apr 2009)
> ViewCVS: http://viewsvn.bricolage.cc/?rev=8535&view=rev
>
> Log Message:
> -----------
> Tweak to r8534 :) Minimum occurence needs to be a non-zero value as well.
>
> Modified Paths:
> --------------
> bricolage/trunk/comp/widgets/container_prof/field.mc
>
> Modified: bricolage/trunk/comp/widgets/container_prof/field.mc
> ===================================================================
> --- bricolage/trunk/comp/widgets/container_prof/field.mc 2009-04-01 09:27:44 UTC (rev 8534)
> +++ bricolage/trunk/comp/widgets/container_prof/field.mc 2009-04-01 09:34:18 UTC (rev 8535)
> @@ -35,7 +35,7 @@
> </div>
> % }
> % # Can't copy an element that's required and only allowed once since it won't be pastable anywhere.
> -% unless ($element->is_autopopulated or ($at_obj->get_min_occurrence >= $at_obj->get_max_occurrence)) {
> +% unless ($element->is_autopopulated or ($at_obj->get_min_occurrence and $at_obj->get_min_occurrence >= $at_obj->get_max_occurrence)) {
> <div class="copy">
> <& '/widgets/profile/button.mc',
> disp => $lang->maketext("Copy"),
>
>