[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 469062ef38a0d13c4db6d6f9e730829e2235a5f5

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


The branch, FREESIDE_2_3_BRANCH has been updated
       via  469062ef38a0d13c4db6d6f9e730829e2235a5f5 (commit)
      from  5c619fec0cb5d8adbce182d91c7c6a22d6725bcf (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 469062ef38a0d13c4db6d6f9e730829e2235a5f5
Author: Mark Wells <mark at freeside.biz>
Date:   Fri Apr 26 16:58:29 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 e332eef..51ec438 100644
--- a/httemplate/elements/select-tiered.html
+++ b/httemplate/elements/select-tiered.html
@@ -181,6 +181,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