Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: commits

[8536] Adrian pointed out that min must be non-zero.

 

 

Bricolage commits RSS feed   Index | Next | Previous | View Threaded


slanning at bricolage

Apr 1, 2009, 9:25 AM

Post #1 of 1 (489 views)
Permalink
[8536] Adrian pointed out that min must be non-zero.

Revision: 8536
Author: slanning
Date: 2009-04-01 09:25:09 -0700 (Wed, 01 Apr 2009)
ViewCVS: http://viewsvn.bricolage.cc/?rev=8536&view=rev

Log Message:
-----------
Adrian pointed out that min must be non-zero.
[hmm, I thought I committed this before...]

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:34:18 UTC (rev 8535)
+++ bricolage/trunk/comp/widgets/container_prof/field.mc 2009-04-01 16:25:09 UTC (rev 8536)
@@ -34,8 +34,9 @@
&>
</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 and $at_obj->get_min_occurrence >= $at_obj->get_max_occurrence)) {
+% # Can't copy an element that's required and already prepopulated since it won't be pastable anywhere.
+% my $min = $at_obj->get_min_occurrence;
+% unless ($element->is_autopopulated or ($min && $min >= $at_obj->get_max_occurrence)) {
<div class="copy">
<& '/widgets/profile/button.mc',
disp => $lang->maketext("Copy"),

Bricolage commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.