Changeset 1186

Show
Ignore:
Timestamp:
2008-09-23 16:02:41 (4 months ago)
Author:
gaspard
Message:

commit 6ee871f995a83ec316d1ccec3fc0be633450bfc0
Author: Gaspard Bucher <gaspard@teti.ch>

Fixed a bug where [edit] in [each_group] was not working (wrong dom_id).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/parser/lib/rules/zena.rb

    r1185 r1186  
    24032403      if method == 'each' && !@context[:make_form] 
    24042404        "#{res}_\#{#{var}.zip}" 
    2405       elsif method == 'unlink' 
     2405      elsif method == 'unlink' || method == 'edit' 
    24062406        target = nil 
    24072407        parent = self.parent 
  • trunk/test/fixtures/files/Node-test.zafu

    r1163 r1186  
    8383<hr/> 
    8484 
    85  
    86  
     85<h2>data group block test</h2> 
     86<ol id='bdata' do='block' do='data'> 
     87  <r:group by='value_a'> 
     88    <li>value: <b do='[value_a]'/></li> 
     89    <li do='each'><r:edit/> <b do='[text]'/> <r:show attr='value_a'/> <r:show attr='value_b'/><r:unlink/></li> 
     90  </r:group> 
     91    <li do='form'><r:cancel/> <input name='text'/> <input name='value_a'/> <input name='value_b'/> <input type='submit'/></li> 
     92    <li do='add' done='focus'/> 
     93    <r:set var='hours' do='stat' find='sum' from='value_a'/> <r:set var='exp' do='stat' find='sum' of='value_b'/> 
     94    <li><b><r:show var='hours'/> * 150.00 = <r:show eval='hours * 150'/> + <r:show var='exp'/> = <r:show eval='( hours * 150 ) + exp'/></b></li> 
     95</ol> 
     96 
     97<hr/> 
    8798 
    8899<h2>data block test</h2>