Plugin Directory

Changeset 2022668


Ignore:
Timestamp:
01/31/2019 12:20:43 PM (7 years ago)
Author:
wordgenie
Message:

Fixed id issue

Location:
files-addon-for-event-espresso-4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • files-addon-for-event-espresso-4/tags/1.0.9/EE_File_Display_Strategy.php

    r2022650 r2022668  
    4040            $id = 'ssa_ee_reg_qstn-'.$reg_id.'-'.$que_id;
    4141        }
     42
    4243        $value = $this->_input->raw_value_in_form();
    4344        $input = '<input type="'. $this->get_type() .'"';
    4445        $input .= ' name="ssa_' . $this->_input->html_name() . '"';
    45         $input .= ' id="ssa_' . $this->_input->html_id() . '"';
     46        $input .= ' id="' . $id . '"';
    4647        $class = $this->_input->required() ? $this->_input->required_css_class() . ' ' . $this->_input->html_class() : $this->_input->html_class();
    4748        $input .= ' class="' . $class . ' ssa-file"';
     
    5556        $input .= '<input type="hidden"';
    5657        $input .= ' name="' . $this->_input->html_name() . '"';
    57         $input .= ' id="' . $this->_input->html_id() . '"';
     58        $input .= ' id="' . $id . '"';
    5859        $class = $this->_input->required() ? $this->_input->required_css_class() . ' ' . $this->_input->html_class() : $this->_input->html_class();
    5960        $input .= ' class="file_value ' . $class . '"';
  • files-addon-for-event-espresso-4/trunk/EE_File_Display_Strategy.php

    r2022650 r2022668  
    4040            $id = 'ssa_ee_reg_qstn-'.$reg_id.'-'.$que_id;
    4141        }
     42
    4243        $value = $this->_input->raw_value_in_form();
    4344        $input = '<input type="'. $this->get_type() .'"';
    4445        $input .= ' name="ssa_' . $this->_input->html_name() . '"';
    45         $input .= ' id="ssa_' . $this->_input->html_id() . '"';
     46        $input .= ' id="' . $id . '"';
    4647        $class = $this->_input->required() ? $this->_input->required_css_class() . ' ' . $this->_input->html_class() : $this->_input->html_class();
    4748        $input .= ' class="' . $class . ' ssa-file"';
     
    5556        $input .= '<input type="hidden"';
    5657        $input .= ' name="' . $this->_input->html_name() . '"';
    57         $input .= ' id="' . $this->_input->html_id() . '"';
     58        $input .= ' id="' . $id . '"';
    5859        $class = $this->_input->required() ? $this->_input->required_css_class() . ' ' . $this->_input->html_class() : $this->_input->html_class();
    5960        $input .= ' class="file_value ' . $class . '"';
Note: See TracChangeset for help on using the changeset viewer.