[freeside-commits] branch FREESIDE_3_BRANCH updated. e695b4913b96dc0a9ff9ec7de96b64b4e33c9163

Mark Wells mark at 420.am
Thu Jun 6 21:49:49 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  e695b4913b96dc0a9ff9ec7de96b64b4e33c9163 (commit)
      from  071b202d0dce3873e909191ce0a1aa4a7b8269b5 (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 e695b4913b96dc0a9ff9ec7de96b64b4e33c9163
Author: Mark Wells <mark at freeside.biz>
Date:   Thu Jun 6 21:49:08 2013 -0700

    restore select-hardware field behavior, from #21442

diff --git a/httemplate/edit/elements/part_svc_column.html b/httemplate/edit/elements/part_svc_column.html
index fbea9bd..1c5b453 100644
--- a/httemplate/edit/elements/part_svc_column.html
+++ b/httemplate/edit/elements/part_svc_column.html
@@ -207,15 +207,20 @@ that field.
              NAME="<%$name%>"
              ID="<%$name%>" 
              VALUE="<%$value%>">
-%     # inventory class selection
+%     my $mode = 'inventory';
+%     my $multiple = 1;
+%     if ( $def->{'type'} eq 'select-hardware' ) {
+%       $mode = 'hardware';
+%       $multiple = 0;
+%     }
       <& /elements/select-table.html,
           'field'       => $name.'_classnum',
           'id'          => $name.'_select',
-          'table'       => 'inventory_class',
+          'table'       => $mode.'_class',
           'name_col'    => 'classname',
           'curr_value'  => $value,
-          'empty_label' => 'Select inventory class',
-          'multiple'    => 1,
+          'empty_label' => "Select $mode class",
+          'multiple'    => 0,
       &>
 %   }
     </TD>

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

Summary of changes:
 httemplate/edit/elements/part_svc_column.html |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)




More information about the freeside-commits mailing list