[freeside-commits] branch master updated. 42cb9f2b2935355862192c2de507efd824840411

Mark Wells mark at 420.am
Fri Apr 26 17:02:52 PDT 2013


The branch, master has been updated
       via  42cb9f2b2935355862192c2de507efd824840411 (commit)
      from  a1a0800de7c69fe5ee414b79e408ceacd4a1c2c3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 42cb9f2b2935355862192c2de507efd824840411
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Apr 26 17:01:50 2013 -0700

    fix an edge case involving select-tiered empty label, #22800

diff --git a/httemplate/elements/select-tiered.html b/httemplate/elements/select-tiered.html
index 3ff5471..48469dc 100644
--- a/httemplate/elements/select-tiered.html
+++ b/httemplate/elements/select-tiered.html
@@ -174,6 +174,8 @@ for( $i = 0; $i < @$tiers; $i++ ) {
         $children_of{$key}->{''} = $tier->{empty_label};
       }
     }
+    # ensure that there's always at least one empty label
+    $children_of{''}->{''} = $tier->{empty_label};
   }
   $tier->{by_key} = \%children_of;
 }

-----------------------------------------------------------------------

Summary of changes:
 httemplate/elements/select-tiered.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list