[Rt-commit] [rtir] 04/04: Port in the smallest possible part of EditCustomFieldSelect

Kevin Falcone falcone at bestpractical.com
Fri Apr 26 18:03:43 EDT 2013


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 2.9/cf-tweaks
in repository rtir.

commit 95fbd3ce8b80bda0f15cbc8ce9a00c0d9218f6b9
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Apr 26 18:01:23 2013 -0400

    Port in the smallest possible part of EditCustomFieldSelect
    
    This doesn't bring in any of the category support because the code in
    here is so far out of wack with core that it's basically a total redo.
    
    This really just need to become an External Custom Field.
---
 html/RTIR/Elements/EditConstituency | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/html/RTIR/Elements/EditConstituency b/html/RTIR/Elements/EditConstituency
index 63f026a..454fb4b 100644
--- a/html/RTIR/Elements/EditConstituency
+++ b/html/RTIR/Elements/EditConstituency
@@ -70,6 +70,14 @@
         <% $Multiple && 'multiple' %> >
 %       $m->out($out);
       </select>
+<%INIT>
+# Handle render types
+$RenderType ||= $CustomField->RenderType;
+if ( $RenderType eq 'Dropdown' ) {
+    # Turn it into a dropdown
+    $Rows = 0;
+}
+</%INIT>
 <%ARGS>
 $Object => undef
 $CustomField => undef
@@ -78,6 +86,7 @@ $Default => undef
 $Values => undef
 $Multiple => 0
 $Rows => undef
+$RenderType => undef
 </%ARGS>
 
 <%METHOD options>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list